:root {
    color-scheme: light;
    --ink: #162f2c;
    --muted: #64736f;
    --green: #164b3f;
    --mint: #b9f0cc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fafbf8;
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.login-layout > section,
.login-content,
.auth-form,
.auth-form .field {
    min-width: 0;
}

.login-content,
.story-content {
    overflow-wrap: anywhere;
}

.auth-form :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 4vw, 72px);
    color: white;
    background:
        linear-gradient(
            180deg,
            rgba(9, 30, 24, 0.55),
            rgba(9, 30, 24, 0.35) 30%,
            rgba(9, 30, 24, 0.92)
        ),
        var(--portal-photo, url("../images/student-gathering.jpg")) center /
            cover;
}

.brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 13px;
    text-decoration: none;
    font-size: 25px;
    font-weight: 750;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 15px;
    font-size: 32px;
}

.brand-mark span {
    display: none;
}

.brand small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: #d7e5dd;
}

.story-content {
    max-width: 600px;
    margin: 110px 0 60px;
}

.eyebrow {
    margin: 0 0 20px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 2px;
    color: var(--green);
}

.login-story .eyebrow {
    color: var(--mint);
}

.story-content h1 {
    margin: 0 0 25px;
    font-size: clamp(44px, 4.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    font-weight: 650;
}

.story-content > p:not(.eyebrow) {
    max-width: 390px;
    color: #e1ebe6;
    font-size: 17px;
    line-height: 1.7;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.story-tags span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.story-caption {
    margin: 0;
    color: #c6d6ce;
    font-size: 12px;
}

.login-panel {
    display: flex;
    flex-direction: column;
    padding: 35px clamp(28px, 5vw, 100px) 25px;
}

.back-link {
    align-self: flex-start;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
}

.back-link span {
    margin-right: 8px;
}

.login-content {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 65px 0;
}

.login-content h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 2.8vw, 43px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.intro {
    margin: 0 0 36px;
    color: var(--muted);
    line-height: 1.6;
}

.field {
    margin-bottom: 21px;
}

.field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid #d5dfd8;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
}

.field input::placeholder {
    color: #88938d;
}

.field input:focus {
    outline: 3px solid #d5edde;
    outline-offset: 1px;
    border-color: var(--green);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.otp-note {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 55px;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: white;
    font-weight: 650;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
}

.submit-button:hover {
    background: #0d392e;
    transform: translateY(-1px);
}

.registration {
    padding: 26px 0;
    margin-top: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e7e1;
}

.registration p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 14px;
}

.registration a {
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 4px;
}

.owner-link {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 23px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.owner-link a {
    color: var(--green);
    font-weight: 650;
    text-underline-offset: 3px;
}

.login-footer {
    text-align: center;
    color: #7a8780;
    font-size: 11px;
}

.notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.notice-error {
    background: #fff0ee;
    color: #9a3029;
    border: 1px solid #f0c6c1;
}

.notice-success {
    background: #e8f4ea;
    color: #225333;
    border: 1px solid #c4dfca;
}

:focus-visible {
    outline: 3px solid #70b998;
    outline-offset: 4px;
}

@media (min-width: 1600px) {
    .login-content {
        max-width: 480px;
    }
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    }

    .login-story {
        padding: 30px;
    }

    .story-content h1 {
        font-size: 45px;
    }

    .story-tags {
        display: none;
    }
}

@media (max-width: 680px) {
    .login-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-story {
        min-height: 310px;
        padding: 25px;
    }

    .story-content {
        margin: 45px 0 0;
    }

    .story-content h1 {
        font-size: 43px;
        margin-bottom: 15px;
    }

    .story-content > p:not(.eyebrow) {
        font-size: 14px;
    }

    .story-caption {
        display: none;
    }

    .login-panel {
        padding: 25px;
    }

    .login-content {
        padding: 38px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .submit-button {
        transition: none;
    }
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.forgot-link {
    font-size: 12px;
    color: var(--green);
    text-underline-offset: 3px;
}

.google-button {
    text-decoration: none;
    gap: 15px;
    margin-top: 35px;
}

.google-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: #164b3f;
    font-weight: 800;
}

.owner-note {
    margin-top: 18px;
}

[hidden] {
    display: none !important;
}

.student-portal {
    --portal-photo: url("../images/student-gathering.jpg");
}

.owner-portal {
    --portal-photo: url("../images/owner-venue.jpg");
}
