.auth-body {
    --auth-ink: #1f2f1e;
    --auth-muted: rgba(31, 47, 30, 0.7);
    --auth-primary: #ed1e79;
    --auth-secondary: #52d675;
    --auth-accent: #ff6f91;
    --auth-hero-bg: linear-gradient(140deg, #fff4d7 0%, #e7fff1 70%);
    --auth-panel-bg: #ffffff;
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 3.5rem);
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.7), transparent 46%),
        radial-gradient(circle at 92% 8%, rgba(255, 226, 204, 0.8), transparent 38%),
        linear-gradient(160deg, #fff1fa 0%, #f5ffe9 55%, #e6f3ff 100%);
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    z-index: 0;
    width: 240px;
    height: 240px;
    left: -80px;
    top: 60px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    animation: authFloat 9s ease-in-out infinite;
}

.auth-body::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 45% 55% 50% 50%;
    pointer-events: none;
    animation: authFloat 11s ease-in-out infinite;
}

.auth-body.auth-admin {
    --auth-primary: #0ea5a4;
    --auth-secondary: #60a5fa;
    --auth-accent: #ed1e79;
    --auth-hero-bg: linear-gradient(140deg, #e7f6ff 0%, #eafff3 70%);
    background:
        radial-gradient(circle at 10% 16%, rgba(255, 255, 255, 0.7), transparent 46%),
        radial-gradient(circle at 88% 12%, rgba(219, 244, 255, 0.75), transparent 40%),
        linear-gradient(160deg, #ecf7ff 0%, #f0fff4 60%, #fff2fa 100%);
}

.auth-wrapper {
    width: min(980px, 94vw);
    position: relative;
    z-index: 1;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    border-radius: 36px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 32px 70px rgba(31, 47, 30, 0.2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    animation: authFade 0.6s ease both;
}

.auth-hero {
    padding: clamp(2rem, 4vw, 3.2rem);
    background: var(--auth-hero-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-hero::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 45% 55% 60% 40%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.08);
    animation: authFloat 7s ease-in-out infinite;
}

.auth-hero::after {
    content: '';
    position: absolute;
    left: -30px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 14px 28px rgba(31, 47, 30, 0.08);
    animation: authFloat 8.5s ease-in-out infinite;
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.auth-logo img {
    width: clamp(150px, 30vw, 200px);
    height: auto;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--auth-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.1);
}

.auth-hero h1 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.auth-hero p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 1rem;
}

.auth-hero-card {
    margin-top: 0.5rem;
    padding: 0.9rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 30px rgba(31, 47, 30, 0.12);
}

.auth-hero-card p {
    margin: 0;
    font-weight: 600;
    color: rgba(31, 47, 30, 0.8);
}

.auth-panel {
    padding: clamp(2rem, 3.5vw, 2.8rem);
    background: var(--auth-panel-bg);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-panel-header h2 {
    margin: 0 0 0.35rem;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.auth-panel-header p {
    margin: 0;
    color: var(--auth-muted);
}

.auth-alert {
    background: rgba(229, 57, 53, 0.12);
    border: 1px solid rgba(229, 57, 53, 0.35);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    color: #b3261e;
    font-weight: 600;
}

.auth-alert p {
    margin: 0;
}

.auth-alert.success {
    background: rgba(32, 176, 92, 0.12);
    border-color: rgba(32, 176, 92, 0.35);
    color: #1d7a3f;
}

.auth-alert.info {
    background: rgba(56, 132, 255, 0.1);
    border-color: rgba(56, 132, 255, 0.28);
    color: #2456a6;
}

.auth-pending-card,
.auth-selection-card {
    border-radius: 20px;
    padding: 1rem 1.05rem;
    background: rgba(250, 252, 255, 0.95);
    border: 1px solid rgba(31, 47, 30, 0.08);
    box-shadow: 0 14px 26px rgba(31, 47, 30, 0.08);
}

.auth-selection-card--hero {
    width: 100%;
    margin-top: 0.9rem;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(31, 47, 30, 0.12);
}

.auth-selection-card--hero .auth-selection-card__head {
    align-items: center;
}

.auth-selection-card--hero .auth-inline-btn {
    background: rgba(255, 255, 255, 0.92);
}

.auth-remembered-card {
    padding: 1.05rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.auth-remembered-card .auth-selection-card__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
}

.auth-remembered-card .auth-selection-card__head h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.auth-remembered-card .auth-selection-card__head p {
    max-width: 22rem;
    font-size: 0.94rem;
}

.auth-remembered-card .auth-inline-btn {
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: rgba(31, 47, 30, 0.68);
    font-size: 0.88rem;
    box-shadow: none;
}

.auth-remembered-card .auth-inline-btn:hover,
.auth-remembered-card .auth-inline-btn:focus-visible {
    color: var(--auth-primary);
    border-color: rgba(237, 30, 121, 0.28);
}

.auth-selection-item.auth-remembered-account {
    display: grid;
    grid-template-columns: 0.42rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.7rem;
    position: relative;
    margin-top: 0.15rem;
    padding: 0.85rem 0.85rem 0.85rem 1rem;
    border-radius: 18px;
    border-color: rgba(31, 47, 30, 0.07);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 10px 22px rgba(31, 47, 30, 0.08);
}

.auth-remembered-account::before {
    content: '';
    width: 0.42rem;
    min-height: 3.5rem;
    align-self: stretch;
    border-radius: 999px;
    background: #1aa43e;
}

.auth-remembered-account .auth-selection-item__copy {
    flex: 1 1 auto;
}

.auth-remembered-account .auth-selection-item__copy strong {
    font-size: 1rem;
    line-height: 1.25;
}

.auth-remembered-account .auth-selection-item__copy span {
    font-size: 0.9rem;
}

.auth-remembered-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: wrap;
}

.auth-account-type {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.27rem 0.52rem;
    border-radius: 999px;
    background: rgba(26, 164, 62, 0.1);
    color: #147c31;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.auth-admin .auth-account-type {
    background: rgba(14, 165, 164, 0.12);
    color: #087b7a;
}

.auth-remembered-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-remembered-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.auth-remembered-forget {
    border: 1px solid rgba(31, 47, 30, 0.12);
    border-radius: 999px;
    background: #fff;
    color: rgba(31, 47, 30, 0.68);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.58rem 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.auth-remembered-forget:hover,
.auth-remembered-forget:focus-visible {
    border-color: rgba(26, 164, 62, 0.32);
    color: #1aa43e;
    outline: none;
}

.auth-pending-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-pending-card__copy,
.auth-selection-card__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    justify-content: space-between;
}

.auth-pending-card__copy {
    flex-direction: column;
}

.auth-pending-card__copy strong,
.auth-selection-card__head h3 {
    margin: 0;
    font-size: 1rem;
}

.auth-pending-card__copy p,
.auth-selection-card__head p {
    margin: 0.2rem 0 0;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-inline-form {
    margin: 0;
}

.auth-inline-btn {
    border: 1px solid rgba(31, 47, 30, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-weight: 700;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

.auth-inline-btn:hover {
    border-color: rgba(31, 47, 30, 0.2);
}

.auth-selection-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.auth-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(31, 47, 30, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.auth-selection-item__copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.auth-selection-item__copy strong {
    font-size: 0.98rem;
}

.auth-selection-item__copy span {
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.auth-selection-item__btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: #fff;
    font: inherit;
    font-weight: 800;
    padding: 0.78rem 1.15rem;
    cursor: pointer;
    white-space: nowrap;
}

.auth-remembered-account .auth-remembered-continue {
    min-height: 2.65rem;
    padding: 0.72rem 1.1rem;
    background: #1aa43e;
    box-shadow: 0 10px 18px rgba(26, 164, 62, 0.18);
    filter: none;
}

.auth-remembered-account .auth-remembered-continue:hover,
.auth-remembered-account .auth-remembered-continue:focus-visible {
    background: #0f8626;
    box-shadow: 0 12px 20px rgba(15, 134, 38, 0.22);
    filter: none;
}

.auth-field-hint {
    margin: -0.2rem 0 0;
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 0.25rem 0 0.15rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(31, 47, 30, 0.12);
}

.auth-divider span {
    position: relative;
    display: inline-flex;
    padding: 0 0.9rem;
    background: #fff;
    color: var(--auth-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-social-list {
    display: grid;
    gap: 0.9rem;
}

.auth-social-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-height: 4.25rem;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(31, 47, 30, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(31, 47, 30, 0.18);
    filter: saturate(1.04);
}

.auth-social-button__icon {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
    color: inherit;
}

.auth-social-button__icon svg {
    width: 1.45rem;
    height: 1.45rem;
    display: block;
}

.auth-social-button__icon--facebook {
    color: #fff;
}

.auth-social-button__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.auth-social-button__text {
    display: block;
    text-align: left;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.auth-social-button__subtext {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
    opacity: 0.9;
}

.auth-social-button--google {
    background: linear-gradient(135deg, #ea4a3a, #d94132);
    color: #fff;
}

.auth-social-button--facebook {
    background: linear-gradient(135deg, #5a84f5, #3f6fe8);
    color: #fff;
}

.auth-social-button--google .auth-social-button__subtext {
    color: rgba(255, 255, 255, 0.88);
}

.auth-social-button--facebook .auth-social-button__subtext {
    color: rgba(255, 255, 255, 0.84);
}

.auth-social-button--google:hover {
    box-shadow: 0 22px 36px rgba(217, 65, 50, 0.34);
}

.auth-social-button--facebook:hover {
    box-shadow: 0 22px 36px rgba(63, 111, 232, 0.34);
}

.auth-social-button.is-disabled {
    opacity: 0.78;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: 0 10px 20px rgba(31, 47, 30, 0.08);
    filter: saturate(0.88);
}

.auth-social-hint {
    margin: -0.05rem 0 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-form .auth-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    margin-top: -0.15rem;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-form .auth-checkbox input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(31, 47, 30, 0.35);
    background: #fff;
    accent-color: var(--auth-primary);
    box-shadow: none;
}

.auth-form .auth-checkbox input:focus {
    box-shadow: none;
}

.auth-form .auth-checkbox span {
    font-size: 0.95rem;
    line-height: 1.4;
}

.auth-form input {
    border-radius: 16px;
    border: 2px solid rgba(31, 47, 30, 0.12);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-password-field {
    position: relative;
    display: block;
}

.auth-password-field input {
    width: 100%;
    padding-right: 3.1rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(31, 47, 30, 0.58);
    cursor: pointer;
    padding: 0;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: rgba(26, 164, 62, 0.1);
    color: #1aa43e;
    outline: none;
}

.auth-password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(255, 138, 76, 0.2);
}

.auth-body.auth-admin .auth-form input:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.2);
}

.auth-submit {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: #fff;
    font-weight: 700;
    padding: 0.95rem 1.6rem;
    cursor: pointer;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 34px rgba(31, 47, 30, 0.18);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(31, 47, 30, 0.22);
}

.auth-body.auth-student .auth-submit:not(.auth-submit--secondary) {
    background: linear-gradient(135deg, #1aa43e 0%, #0f8626 54%, #3dc35d 100%);
}

.auth-body.auth-student .auth-submit:not(.auth-submit--secondary):hover,
.auth-body.auth-student .auth-submit:not(.auth-submit--secondary):focus-visible {
    box-shadow: 0 22px 40px rgba(15, 134, 38, 0.24);
}

.auth-submit--secondary {
    background: linear-gradient(135deg, #0ea5a4, #52d675);
    font-size: 1rem;
    padding: 0.82rem 1.4rem;
}

.auth-helper-row {
    margin-top: -0.15rem;
    display: flex;
    justify-content: flex-end;
}

.auth-forgot-trigger {
    border: none;
    background: transparent;
    color: var(--auth-primary);
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.3rem 0.4rem;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.35;
    letter-spacing: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-forgot-trigger:hover {
    color: rgba(31, 47, 30, 0.88);
    background: rgba(31, 47, 30, 0.08);
}

.auth-forgot-trigger:focus-visible {
    outline: 2px solid rgba(82, 214, 117, 0.72);
    outline-offset: 2px;
}

body.auth-forgot-modal-open {
    overflow: hidden;
}

.auth-forgot-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-forgot-modal[hidden] {
    display: none;
}

.auth-forgot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 20, 30, 0.48);
    backdrop-filter: blur(2px);
}

.auth-forgot-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
}

.auth-forgot-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: rgba(31, 47, 30, 0.62);
    background: rgba(31, 47, 30, 0.08);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-forgot-modal__close:hover {
    background: rgba(31, 47, 30, 0.15);
    color: rgba(31, 47, 30, 0.92);
}

.auth-forgot-modal__close:focus-visible {
    outline: 2px solid rgba(82, 214, 117, 0.72);
    outline-offset: 2px;
}

.auth-forgot-card {
    border-radius: 22px;
    border: 1px solid rgba(31, 47, 30, 0.12);
    background: linear-gradient(165deg, rgba(250, 255, 247, 0.95), rgba(242, 252, 255, 0.92));
    padding: 1.15rem;
    display: grid;
    gap: 0.9rem;
}

.auth-forgot-card.is-open {
    border-color: rgba(82, 214, 117, 0.45);
    box-shadow: 0 26px 46px rgba(31, 47, 30, 0.18);
}

.auth-forgot-head {
    display: grid;
    gap: 0.28rem;
}

.auth-forgot-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.auth-forgot-head p {
    margin: 0;
    color: rgba(31, 47, 30, 0.72);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-form--forgot {
    gap: 0.85rem;
}

.auth-form--forgot .auth-submit {
    margin-top: 0.2rem;
}

.auth-forgot-result {
    display: grid;
    gap: 0.75rem;
    text-align: center;
    align-items: center;
    justify-items: center;
    padding: 0.15rem 0 0.35rem;
}

.auth-forgot-result__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 176, 92, 0.15);
    border: 1px solid rgba(32, 176, 92, 0.35);
    color: #1d7a3f;
}

.auth-forgot-result__icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.auth-forgot-result p {
    margin: 0;
    color: rgba(31, 47, 30, 0.84);
    font-weight: 700;
    line-height: 1.6;
}

.auth-forgot-result__btn {
    min-width: 170px;
}

.auth-submit:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
    box-shadow: 0 14px 26px rgba(31, 47, 30, 0.12);
}

.auth-footer {
    margin-top: auto;
    text-align: center;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    background: rgba(255, 248, 242, 0.85);
    border: 1px solid rgba(31, 47, 30, 0.08);
    color: rgba(31, 47, 30, 0.7);
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.auth-footer p {
    margin: 0;
}

@media (max-width: 880px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        text-align: center;
        align-items: center;
    }

    .auth-hero-card {
        width: 100%;
    }

    .auth-selection-card--hero {
        width: 100%;
        text-align: left;
    }

    .auth-tag {
        align-self: center;
    }

    .auth-panel {
        padding-top: 1.6rem;
    }

    .auth-helper-row {
        justify-content: center;
    }

    .auth-pending-card,
    .auth-selection-item,
    .auth-selection-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-remembered-card .auth-selection-card__head {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .auth-selection-item.auth-remembered-account {
        grid-template-columns: 0.42rem minmax(0, 1fr);
        align-items: stretch;
    }

    .auth-remembered-actions {
        grid-column: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .auth-remembered-account .auth-remembered-continue {
        order: 1;
    }

    .auth-remembered-forget {
        order: 2;
    }

    .auth-remembered-card .auth-inline-form {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .auth-body {
        min-height: 100dvh;
        display: block;
        padding: 0.9rem 0.75rem 1.25rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-wrapper {
        width: 100%;
    }

    .auth-shell {
        border-radius: 24px;
        overflow: visible;
    }

    .auth-hero {
        padding: 1.25rem 1.1rem;
        gap: 0.7rem;
    }

    .auth-hero h1,
    .auth-hero > p,
    .auth-hero-card {
        display: none;
    }

    .auth-panel {
        padding: 1.35rem 1.1rem 1.4rem;
        gap: 1rem;
    }

    .auth-forgot-modal {
        padding: 0.7rem;
    }

    .auth-forgot-card {
        border-radius: 18px;
        padding: 1rem 0.9rem 0.95rem;
    }

    .auth-forgot-modal__close {
        top: 0.55rem;
        right: 0.55rem;
    }

    .auth-selection-item__btn,
    .auth-inline-btn {
        width: 100%;
    }

    .auth-remembered-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-remembered-forget {
        width: 100%;
    }

    .auth-remembered-meta {
        white-space: normal;
    }

    .auth-social-list {
        gap: 0.7rem;
    }

    .auth-social-button {
        grid-template-columns: auto max-content;
        justify-content: center;
        gap: 0.7rem;
        min-height: 3.45rem;
        padding: 0.85rem 1rem;
        box-shadow: 0 12px 24px rgba(31, 47, 30, 0.12);
    }

    .auth-social-button__icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .auth-social-button__icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .auth-social-button__copy {
        align-items: center;
    }

    .auth-social-button__text {
        text-align: center;
        font-size: 1rem;
        white-space: nowrap;
    }

    .auth-social-button__subtext {
        display: none;
    }

    .auth-social-hint {
        margin-top: 0.15rem;
        text-align: center;
        font-size: 0.82rem;
    }

    .auth-footer {
        padding: 0.85rem 0.95rem;
        font-size: 0.88rem;
    }
}

@keyframes authFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .auth-shell,
    .auth-body::before,
    .auth-body::after,
    .auth-hero::before,
    .auth-hero::after {
        animation: none;
    }
}
