.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
}
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 40px;
    max-width: clamp(420px, 42vw, 620px);
    margin: 0 auto;
    width: 100%;
}
.auth-left .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}
.auth-left .brand img {
    height: clamp(160px, 18vw, 270px);
    width: auto;
}
.auth-left h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}
.auth-left .subtitle {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 440px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form .forgot {
    text-align: right;
    margin-top: -4px;
}
.auth-form .forgot a {
    color: var(--text-muted);
    font-size: 13px;
}
.auth-form .forgot a:hover {
    color: var(--green-700);
}
.auth-form .alt-link {
    text-align: center;
    margin-top: 4px;
}
.auth-form .alt-link a {
    color: var(--green-600);
    font-weight: 600;
}
.auth-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-footer a {
    color: var(--green-600);
    font-weight: 600;
}

.auth-right {
    background: #30ab71;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}
.auth-right .illu {
    max-width: clamp(420px, 44vw, 800px);
    width: 100%;
    height: auto;
}
.auth-right .tag {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    max-width: 460px;
    font-family: var(--font-display);
}
.auth-right .tag b {
    color: white;
}

/* Stand-alone auth pages (register/forgot) - single centered card */
.auth-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: scaleIn var(--dur) var(--ease);
    margin-top: 50px;
}
.auth-card .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.auth-card .brand img {
    height: 80px;
}
.auth-card h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 6px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.auth-card .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 18px;
}
.auth-card .back-link:hover {
    color: var(--green-700);
}

/* Steps */
.steps {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.steps .step {
    flex: 1;
    height: 6px;
    background: white;
    border-radius: 999px;
    transition: background var(--dur) var(--ease);
}
.steps .step.active {
    background: var(--green-500);
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 4px;
}
.code-inputs input {
    width: 52px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: #fff;
    transition:
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}
.code-inputs input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* ── Logo da escola ──────────────────────────────────────────────────
   Apenas a imagem, sem card/moldura/background/borda. Fica no canto
   superior esquerdo, ~120px do topo, levemente acima da logo ANT. */
.school-logo {
    position: fixed;
    top: 10px;
    left: 20px;
    width: 130px;
    height: auto;
    z-index: 50;
}

@media (max-width: 640px) {
    .school-logo {
        top: 90px;
        left: 16px;
        width: 48px;
    }
}
