/* ═══════════════════════════════════
   EduHub — Auth & Onboarding Styles
   ═══════════════════════════════════ */

/* Auth page layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    background: var(--gray-bg);
}

.auth-hero {
    background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
    padding: 48px 24px 32px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.auth-logo-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}

.auth-logo-text {
    font-size: 24px; font-weight: 800; color: #fff;
}

.auth-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    font-weight: 500;
}

.auth-card {
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -16px;
    padding: 24px 20px;
    flex: 1;
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
}

.auth-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.auth-step { display: none; }
.auth-step.active { display: block; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-link {
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.auth-footer {
    padding: 16px 20px;
    text-align: center;
}

.auth-back-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-back-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-mid);
    flex-shrink: 0;
}

.auth-email-chip {
    background: #f3f4f6;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.auth-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap > i:first-child {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.input-with-icon {
    padding-left: 38px;
}
.input-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px;
}

/* Portal selector */
.portal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: .18s;
}
.portal-card:active { background: #f8fafc; transform: scale(.98); }
.portal-card:hover  { border-color: var(--red); }

.portal-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    flex-shrink: 0;
}
.portal-body { flex: 1; min-width: 0; }
.portal-title { font-size: 14px; font-weight: 800; color: var(--text-dark); }
.portal-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Role card for register */
.role-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: .18s;
}
.role-card.selected { border-color: var(--red); background: #fff8f8; }
.role-card:active { transform: scale(.97); }
.role-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.role-body  { flex: 1; min-width: 0; }
.role-title { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.role-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Onboarding header */
.onboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}
.ob-logo {
    font-size: 16px;
    font-weight: 800;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ob-step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ob-step-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ob-step-title { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.ob-step-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* CBC grade cards */
.cbc-grade-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}
.cbc-code  { font-size: 18px; font-weight: 800; font-family: 'DM Mono', monospace; }
.cbc-name  { font-size: 11px; font-weight: 700; color: var(--text-dark); margin-top: 4px; }
.cbc-range { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.grading-preview { margin-top: 0; }

/* Exam card */
.exam-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: .18s;
}
.exam-card:active { transform: scale(.98); }
.exam-card-header { padding: 16px; }

/* Active chip toggle */
.chip.active { background: var(--red-light); color: var(--red); }
