.auth-page {
    --brand-900: #103b30;
    --brand-800: #17533b;
    --brand-700: #0d3526;
    --brand-600: #0d3526;
    --brand-500: #0d3526;
    --brand-100: #eef1ef;
    --brand-50: #f4faf6;
    --ink-900: #103b30;
    --ink-700: #52636b;
    --ink-500: #6c7c80;
    --line: #dce4df;
    background: #f3f6f4;
    color: var(--ink-900);
}

.auth-page .wrapper {
    min-height: 100vh;
    padding: 34px 22px;
}

.auth-page .landing-main {
    width: min(1020px, 100%);
    grid-template-columns: minmax(0, 1fr);
}

.auth-page .form-box,
.auth-page .form-box.register-active {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    width: 100%;
    max-width: none;
    min-height: 550px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe8e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 59, 48, .12);
}

.auth-page .form-box.register-active {
    min-height: 700px;
}

.auth-page .auth-side-panel {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 31px clamp(28px, 4vw, 55px);
    border-right: 1px solid #1a6042;
    background: #0d3526;
    color: #fff;
}

.auth-page .auth-side-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.auth-page .auth-side-brand:hover,
.auth-page .auth-side-brand:focus-visible {
    color: #fff;
    opacity: .8;
    transform: translateY(-1px);
}

.auth-page .auth-side-brand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

.auth-page .auth-side-brand i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    color: #d7f0dc;
    font-size: 1.25rem;
}

.auth-page .auth-side-copy {
    max-width: 330px;
    margin: auto 0;
    animation: auth-copy-enter .35s ease both;
}

.auth-page .auth-side-eyebrow {
    color: #d7f0dc;
    font-size: .7rem;
    font-weight: 800;
}

.auth-page .auth-side-copy h2 {
    margin-top: 13px;
    color: #fff;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.18;
}

.auth-page .auth-side-copy p {
    max-width: 295px;
    margin-top: 14px;
    color: #e1f1e6;
    font-size: .88rem;
    line-height: 1.6;
}

.auth-page .auth-side-copy button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    margin-top: 29px;
    padding: 10px 23px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: #0d3526;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.auth-page .auth-side-copy button:hover,
.auth-page .auth-side-copy button:focus-visible {
    transform: translateY(-2px);
    background: #e9f0ec;
    border-color: #e9f0ec;
    color: #0d3526;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.auth-page .auth-side-copy button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}

.auth-page .auth-side-copy button i {
    font-size: 1.1rem;
}

.auth-page .auth-side-register,
.auth-page .auth-side-admin,
.auth-page .form-box.register-active .auth-side-student,
.auth-page.admin-login-page .auth-side-student {
    display: none;
}

.auth-page .form-box.register-active .auth-side-register,
.auth-page.admin-login-page .auth-side-admin {
    display: block;
}

.auth-page .auth-side-footer {
    color: #d7ebdf;
    font-size: .7rem;
}

.auth-page .login-container,
.auth-page .register-container {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: none;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 43px clamp(28px, 4vw, 62px);
    color: var(--ink-900);
    pointer-events: none;
}

.auth-page .login-container.is-active,
.auth-page .register-container.is-active {
    display: flex;
    pointer-events: auto;
    animation: auth-form-enter .35s ease both;
}

.auth-page .login-container {
    justify-content: center;
}

.auth-page .register-container {
    justify-content: flex-start;
    padding-top: 34px;
    padding-bottom: 31px;
}

.auth-page .auth-intro {
    margin-bottom: 27px;
}

.auth-page .auth-role-switch {
    width: 100%;
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid #e4ebe6;
    text-align: center;
}

.auth-page .auth-role-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    color: #52665b;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-page .auth-role-switch a:hover {
    color: #0d3526;
    text-decoration: underline;
}

.auth-page .auth-role-switch .auth-student-link,
.auth-page.admin-login-page .auth-role-switch .auth-admin-link {
    display: none;
}

.auth-page.admin-login-page .auth-role-switch .auth-student-link {
    display: inline-flex;
}

.auth-page .auth-intro h1,
.auth-page .register-container header {
    font-size: 1.9rem;
    font-weight: 800;
    text-align: center;
}

.auth-page .register-container header {
    margin-bottom: 22px;
}

.auth-page .register-container .top span {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-bottom: 8px;
    color: #62747a;
}

.auth-page .input-box {
    margin-bottom: 13px;
}

.auth-page .input-field {
    min-height: 51px;
    border: 1px solid #d6e5dc;
    border-radius: 6px;
    background: #f6faf7;
    box-shadow: inset 1px 1px 3px rgba(16, 59, 48, .06);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-page .input-field:hover {
    border-color: #9ac6aa;
    background: #fff;
}

.auth-page .input-field:focus {
    border-color: #0d3526;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 111, 73, .14);
}

.auth-page .input-box > i {
    color: #0d3526;
}

.auth-page .password-toggle {
    color: #0d3526;
}

.auth-page .password-toggle:hover {
    background: #eef1ef;
}

.auth-page .submit {
    min-height: 49px;
    border-radius: 6px;
    background: #0d3526;
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(16, 59, 48, .14);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.auth-page .submit:hover:not(:disabled),
.auth-page .submit:focus-visible:not(:disabled) {
    transform: translateY(-2px);
    background: #17533b;
    box-shadow: 0 10px 20px rgba(16, 59, 48, .2);
}

.auth-page .login-switch-text {
    color: #62747a;
}

.auth-page .login-switch-text a,
.auth-page .login-help-row > a,
.auth-page .register-container .top span a {
    color: #0d3526;
}

.auth-page .login-help-row > a:hover,
.auth-page .login-switch-text a:hover,
.auth-page .register-container .top span a:hover {
    color: #17533b;
    background: transparent;
    text-decoration: underline;
}

.auth-page .privacy-consent {
    border-color: #e0e8e2;
    background: #f0f4f1;
    box-shadow: inset 3px 3px 7px rgba(35, 58, 54, .06), inset -3px -3px 8px rgba(255, 255, 255, .9);
}

.auth-page .password-rule-hint {
    color: #657579;
}

.auth-page .password-rule-hint i {
    color: #0d3526;
}

.auth-page .privacy-read-btn {
    border-color: #0d3526;
    background: #0d3526;
    color: #fff;
}

.auth-page .privacy-read-btn:hover,
.auth-page .privacy-read-btn:focus-visible {
    background: #17533b;
}

@keyframes auth-form-enter {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes auth-copy-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .auth-page .wrapper {
        padding: 24px 15px;
    }

    .auth-page .landing-main,
    .auth-page .form-box {
        max-width: 540px;
    }

    .auth-page .form-box,
    .auth-page .form-box.register-active {
        display: block;
        min-height: 0 !important;
        overflow: visible;
    }

    .auth-page .auth-side-panel {
        padding: 16px 26px;
        border-right: 0;
        border-radius: 8px 8px 0 0;
    }

    .auth-page .auth-side-copy,
    .auth-page .auth-side-footer {
        display: none;
    }

    .auth-page .login-container,
    .auth-page .register-container {
        width: 100%;
        padding: 37px 26px 32px;
    }

    .auth-page .register-container .top span {
        display: flex;
        justify-content: center;
        padding-bottom: 8px;
    }
}

@media (max-width: 420px) {
    .auth-page .login-container,
    .auth-page .register-container {
        padding-right: 19px;
        padding-left: 19px;
    }

    .auth-page .auth-intro h1,
    .auth-page .register-container header {
        font-size: 1.65rem;
    }
}

@media (max-height: 700px) and (min-width: 761px) {
    .auth-page .wrapper {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page .login-container.is-active,
    .auth-page .register-container.is-active,
    .auth-page .auth-side-copy {
        animation: none;
    }

    .auth-page .auth-side-copy button,
    .auth-page .submit,
    .auth-page .input-field {
        transition: none;
    }

    .auth-page .auth-side-copy button:hover,
    .auth-page .submit:hover:not(:disabled) {
        transform: none;
    }
}
