/* Sign in: the cover of a school exercise book, with the fields written on its name label. */
:root {
    --cover: #0b4650;
    --cover-light: #125a66;
    --paper: #fcfefe;
    --ink: #12333a;
    --ink-soft: #4c666c;
    --rule: #a9cbd3;
    --teal: #0e7480;
    --red: #c4161c;
    --blue: #1f5fa8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cover);
    color: var(--ink);
    font-family: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 100vh;
    padding: 28px 16px;
    /* The cloth spine down the left edge of the book. */
    background: linear-gradient(90deg, #072f36 0, #072f36 34px, var(--cover) 34px);
}

.cover-school {
    text-align: center;
}

.cover-school img {
    display: block;
    width: 112px;
    height: 105px;
    margin: 0 auto 12px;
    padding: 6px;
    border-radius: 50% 50% 8px 8px;
    background: #fff;
    object-fit: contain;
}

.cover-name {
    margin: 0;
    color: #fff;
    font-family: "Zilla Slab", Rockwell, Georgia, serif;
    font-size: clamp(25px, 5vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}

.cover-motto {
    margin: 2px 0 0;
    color: #c6e3e8;
    font-size: 17px;
}

.book-label {
    width: min(460px, 100%);
    padding: 24px 28px 28px 50px;
    border-radius: 3px;
    background-color: var(--paper);
    background-image: linear-gradient(90deg, transparent 31px, var(--red) 31px, var(--red) 32px, transparent 32px, transparent 34px, var(--red) 34px, var(--red) 35px, transparent 35px);
    box-shadow: 0 2px 0 #072f36, 0 0 0 6px var(--cover-light);
}

.book-label h1 {
    margin: 0 0 18px;
    font-family: "Zilla Slab", Rockwell, Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
}

.label-line {
    margin-bottom: 16px;
}

.label-line label {
    display: block;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 700;
}

.label-line input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 2px solid var(--rule);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 20px;
}

.label-line input:focus {
    outline: 0;
    border-bottom-color: var(--teal);
    background: #eef7f8;
}

.book-label button {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 6px;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.book-label button:hover {
    background: var(--cover);
}

.book-label button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.label-messages {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.label-messages li {
    padding: 8px 12px;
    border-left: 4px solid var(--teal);
    background: #e5f3f5;
}

.label-messages li.error {
    border-color: var(--red);
    background: #fcebec;
    color: #9c1116;
}

.label-messages li.warning {
    border-color: #855800;
    background: #fff4d9;
    color: #6b4700;
}

.notice-student {
    margin: -10px 0 14px;
    color: var(--ink-soft);
    font-weight: 700;
}

.notice-message {
    margin: 0;
    font-size: 18px;
}

.notice-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 22px;
    border-radius: 6px;
    background: var(--teal);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.notice-link:hover {
    background: var(--cover);
    color: #fff;
}

.notice-link:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .cover {
        justify-content: flex-start;
        background: linear-gradient(90deg, #072f36 0, #072f36 14px, var(--cover) 14px);
        padding-left: 26px;
    }

    .cover-school img {
        width: 88px;
        height: 83px;
    }

    .book-label {
        padding: 20px 18px 22px 44px;
    }
}
