.auth-body.auth-student,
.auth-body.auth-admin {
    --auth-modern-green: #078f45;
    --auth-modern-green-dark: #08753b;
    --auth-modern-green-soft: #e8f6ef;
    --auth-modern-ink: #173331;
    --auth-modern-muted: #737b86;
    --auth-modern-border: #d8e7df;
    --auth-modern-field: #c4ded2;
    --auth-modern-shadow: 0 24px 58px rgba(29, 68, 49, 0.11);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(16px, 3vw, 42px);
    display: grid;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--auth-modern-ink);
    background:
        linear-gradient(145deg, rgba(239, 248, 243, 0.96) 0%, #ffffff 42%, rgba(235, 247, 240, 0.95) 100%);
}

.auth-body.auth-student::before,
.auth-body.auth-student::after,
.auth-body.auth-admin::before,
.auth-body.auth-admin::after {
    content: none !important;
}

.student-login-shell,
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
    max-width: 820px !important;
    margin: 0 auto;
    padding: 0;
    display: grid;
    place-items: center;
}

.auth-body.auth-student .floating-social-links,
.auth-body.auth-student .back-to-top,
.auth-body.auth-admin .floating-social-links,
.auth-body.auth-admin .back-to-top {
    display: none !important;
}

.student-login-card,
.auth-shell.auth-shell--admin {
    width: min(100%, 780px);
    display: block !important;
    overflow: visible !important;
    border: 1px solid var(--auth-modern-border) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--auth-modern-shadow) !important;
    backdrop-filter: blur(18px);
    padding: clamp(24px, 4vw, 42px) clamp(22px, 6vw, 76px) !important;
    animation: authModernEnter 0.45s ease both;
}

.auth-shell.auth-shell--admin > .auth-hero {
    display: none !important;
}

.student-login-main,
.auth-panel {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 22px);
}

.student-login-topbar {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.student-login-brand,
.auth-modern-logo {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 auto !important;
    align-items: center;
    justify-content: center;
}

.student-login-brand img,
.auth-modern-logo img {
    width: clamp(118px, 16vw, 168px) !important;
    height: auto;
}

.student-login-back,
.student-login-kicker,
.auth-panel-note {
    display: none !important;
}

.student-login-intro,
.auth-panel-header {
    text-align: center;
    display: grid;
    gap: 10px;
    margin: 0;
}

.auth-panel-header .auth-modern-logo {
    margin-bottom: 8px !important;
}

.student-login-intro h1,
.auth-panel-header h1 {
    margin: 0;
    color: var(--auth-modern-ink);
    font-family: 'Google Sans Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.35rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.student-login-intro p,
.auth-panel-header p {
    width: min(100%, 460px);
    margin: 0 auto;
    color: var(--auth-modern-muted);
    font-size: clamp(0.98rem, 1.4vw, 1.16rem);
    line-height: 1.5;
    font-weight: 500;
}

.auth-form,
.student-login-form {
    width: 100%;
    margin: 0;
    padding: 0 !important;
    display: grid !important;
    gap: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.auth-modern-field {
    display: grid;
    gap: 8px;
}

.auth-modern-field > label {
    color: var(--auth-modern-ink);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.25;
    font-weight: 850;
}

.auth-modern-input {
    position: relative;
    display: block;
}

.auth-modern-input input {
    width: 100%;
    min-height: 58px;
    border: 1.5px solid var(--auth-modern-field) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--auth-modern-ink) !important;
    padding: 0 3.75rem 0 4.35rem !important;
    font: 500 clamp(0.98rem, 1.3vw, 1.08rem)/1.25 'Google Sans Flex', system-ui, sans-serif !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-modern-input input::placeholder {
    color: #8f949c;
    opacity: 1;
}

.auth-modern-input input:focus {
    outline: none;
    border-color: var(--auth-modern-green) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(7, 143, 69, 0.12) !important;
}

.auth-modern-input__icon {
    position: absolute;
    left: 22px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: var(--auth-modern-green);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    z-index: 1;
}

.auth-modern-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #6c737c;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.auth-modern-password-toggle:hover,
.auth-modern-password-toggle:focus-visible,
.auth-modern-password-toggle.is-visible {
    color: var(--auth-modern-green);
    background: rgba(7, 143, 69, 0.08);
    outline: none;
}

.auth-modern-password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-login-meta-row,
.auth-modern-helper-row {
    margin: -2px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-form .auth-checkbox,
.student-login-page .auth-form .student-login-remember,
.auth-modern-helper-row .auth-checkbox {
    min-width: 0;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    color: #5f6670 !important;
    font-weight: 500 !important;
}

.auth-form .auth-checkbox input,
.student-login-page .auth-form .student-login-remember input {
    flex: 0 0 auto;
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none;
    border: 1.5px solid rgba(7, 143, 69, 0.45) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    box-shadow: none !important;
    cursor: pointer;
}

.auth-form .auth-checkbox input:checked,
.student-login-page .auth-form .student-login-remember input:checked {
    border-color: var(--auth-modern-green) !important;
    background-color: var(--auth-modern-green) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.auth-form .auth-checkbox input:focus-visible,
.student-login-page .auth-form .student-login-remember input:focus-visible {
    outline: 3px solid rgba(7, 143, 69, 0.18);
    outline-offset: 3px;
}

.auth-form .auth-checkbox span,
.student-login-page .auth-form .student-login-remember span {
    min-width: 0;
    color: inherit !important;
    font-size: clamp(0.96rem, 1.2vw, 1.04rem) !important;
    line-height: 1.35 !important;
}

.student-login-forgot,
.auth-modern-forgot {
    flex: 0 0 auto;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--auth-modern-green) !important;
    font: 750 clamp(0.96rem, 1.2vw, 1.02rem)/1.3 'Google Sans Flex', system-ui, sans-serif !important;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.student-login-forgot:hover,
.student-login-forgot:focus-visible,
.auth-modern-forgot:hover,
.auth-modern-forgot:focus-visible {
    color: var(--auth-modern-green-dark) !important;
    text-decoration: underline;
    outline: none;
}

.auth-submit,
.student-login-submit.auth-submit,
.student-login-page .auth-submit:not(.auth-submit--secondary),
.auth-body.auth-admin .auth-submit:not(.auth-submit--secondary) {
    width: 100%;
    min-height: 58px;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #089b4a 0%, #07863f 100%) !important;
    color: #ffffff !important;
    font: 850 clamp(1.04rem, 1.4vw, 1.12rem)/1 'Google Sans Flex', system-ui, sans-serif !important;
    letter-spacing: 0;
    box-shadow: 0 14px 24px rgba(7, 143, 69, 0.19) !important;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible,
.student-login-submit.auth-submit:hover,
.student-login-submit.auth-submit:focus-visible,
.auth-body.auth-admin .auth-submit:not(.auth-submit--secondary):hover,
.auth-body.auth-admin .auth-submit:not(.auth-submit--secondary):focus-visible {
    transform: translateY(-1px) !important;
    filter: saturate(1.04);
    box-shadow: 0 18px 30px rgba(7, 143, 69, 0.24) !important;
    outline: none;
}

.auth-modern-divider {
    margin: 0 0 -2px;
    display: grid;
    grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
    align-items: center;
    gap: 18px;
    color: #7f858d;
    font-size: clamp(0.96rem, 1.2vw, 1.06rem);
    line-height: 1.3;
    font-weight: 500;
}

.auth-modern-divider::before,
.auth-modern-divider::after {
    content: "";
    height: 1px;
    background: #d6d9dd;
}

.auth-modern-contact {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1.5px solid rgba(7, 143, 69, 0.72);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--auth-modern-green);
    text-decoration: none;
    font: 850 clamp(1rem, 1.35vw, 1.1rem)/1.25 'Google Sans Flex', system-ui, sans-serif;
    box-shadow: 0 14px 26px rgba(17, 71, 45, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-modern-contact:hover,
.auth-modern-contact:focus-visible {
    color: #ffffff;
    border-color: var(--auth-modern-green);
    background: var(--auth-modern-green);
    transform: translateY(-1px);
    outline: none;
}

.auth-modern-contact svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-modern-contact-text {
    margin: 0;
    text-align: center;
    color: #6b7280;
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    line-height: 1.4;
    font-weight: 500;
}

.auth-modern-footer {
    margin: 0;
    text-align: center;
    color: #8c929b;
    font-size: clamp(0.88rem, 1vw, 0.96rem);
    line-height: 1.4;
    font-weight: 500;
}

.auth-alert,
.auth-selection-card {
    border-radius: 13px !important;
    box-shadow: none !important;
}

.auth-selection-card {
    padding: 12px 14px !important;
}

.auth-selection-card__head {
    gap: 10px !important;
}

.auth-selection-card__head h3 {
    font-size: 0.94rem !important;
}

.auth-selection-card__head p {
    margin-top: 3px !important;
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
}

.auth-selection-list {
    gap: 8px !important;
    margin-top: 10px !important;
}

.auth-selection-item {
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

.auth-selection-item__copy {
    gap: 2px !important;
}

.auth-selection-item__copy strong {
    font-size: 0.9rem !important;
}

.auth-selection-item__copy span {
    font-size: 0.8rem !important;
}

.auth-selection-item__actions {
    gap: 8px !important;
}

.auth-selection-item__btn,
.auth-inline-btn {
    padding: 8px 12px !important;
    font-size: 0.86rem !important;
}

.auth-divider {
    margin: -4px 0 0;
    font-size: 0.86rem;
}

@keyframes authModernEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .auth-body.auth-student,
    .auth-body.auth-admin {
        padding: 12px;
        place-items: start center;
    }

    .student-login-card,
    .auth-shell.auth-shell--admin {
        border-radius: 18px !important;
        padding: 22px 16px !important;
    }

    .student-login-main,
    .auth-panel {
        gap: 16px;
    }

    .student-login-brand img,
    .auth-modern-logo img {
        width: 122px !important;
    }

    .student-login-intro,
    .auth-panel-header {
        gap: 8px;
    }

    .student-login-intro h1,
    .auth-panel-header h1 {
        font-size: clamp(2.1rem, 10vw, 2.55rem);
    }

    .student-login-intro p,
    .auth-panel-header p {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .auth-form,
    .student-login-form {
        gap: 16px !important;
    }

    .auth-modern-input input {
        min-height: 56px;
        padding-left: 3.25rem !important;
        padding-right: 3rem !important;
        font-size: 0.88rem !important;
    }

    .auth-modern-input__icon {
        left: 18px;
        width: 20px;
        height: 20px;
    }

    .auth-modern-password-toggle {
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .student-login-meta-row,
    .auth-modern-helper-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .student-login-forgot,
    .auth-modern-forgot {
        align-self: flex-start;
    }

    .auth-submit,
    .student-login-submit.auth-submit,
    .auth-body.auth-admin .auth-submit:not(.auth-submit--secondary) {
        min-height: 56px;
    }

    .auth-modern-divider {
        gap: 14px;
    }

    .auth-modern-contact {
        min-height: 56px;
        gap: 10px;
        padding: 12px 14px;
        font-size: 0.96rem;
    }
}
