.student-auth {
    --auth-bg: #eef3f8;
    --auth-surface: #ffffff;
    --auth-text: #172033;
    --auth-muted: #64748b;
    --auth-line: #dbe4ef;
    --auth-primary: #0f766e;
    --auth-primary-dark: #0b5d56;
    --auth-primary-soft: #ecfdf5;
    --auth-danger: #b91c1c;
    --auth-success: #15803d;
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
    color: var(--auth-text);
    background:
        linear-gradient(180deg, #f7fbff 0, #eef3f8 280px),
        var(--auth-bg);
}

.student-auth * {
    box-sizing: border-box;
}

.auth-shell {
    min-height: 100vh;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 28px;
    align-items: center;
    padding: 36px 0;
}

.auth-copy {
    display: grid;
    gap: 18px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--auth-primary-dark);
}

.auth-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-primary);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .18);
}

.auth-copy h1 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.auth-copy p {
    margin: 0;
    max-width: 620px;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-muted);
    font-weight: 700;
    font-size: .9rem;
}

.auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
    padding: 24px;
}

.auth-card-head {
    margin-bottom: 18px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary-dark);
    border: 1px solid rgba(15, 118, 110, .22);
    font-size: .84rem;
    font-weight: 800;
}

.auth-card h2 {
    margin: 12px 0 6px;
    font-size: 1.55rem;
    letter-spacing: 0;
}

.auth-card p {
    margin: 0 0 16px;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--auth-text);
    font-weight: 800;
}

.auth-hint {
    color: var(--auth-muted);
    font-size: .82rem;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    color: var(--auth-text);
    background: #fff;
}

.auth-input:focus {
    outline: 3px solid rgba(15, 118, 110, .16);
    border-color: var(--auth-primary);
}

.auth-button,
.auth-link-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--auth-primary);
    background: var(--auth-primary);
    color: #fff;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.auth-button:hover,
.auth-link-button:hover {
    background: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
}

.auth-secondary {
    margin-top: 12px;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    color: var(--auth-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.auth-secondary:hover {
    text-decoration: underline;
}

.auth-message {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--auth-line);
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.auth-message.success {
    background: #ecfdf3;
    color: var(--auth-success);
    border-color: #bbf7d0;
}

.auth-message.error {
    background: #fef2f2;
    color: var(--auth-danger);
    border-color: #fecaca;
}

.auth-footnote {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        padding: 24px 0;
    }

    .auth-copy h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        width: min(100% - 20px, 1120px);
        padding: 12px 0 24px;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-field label {
        display: grid;
        gap: 4px;
    }
}
