/* EDU Access — تصميم موحّد للترحيب وتسجيل الدخول (بوابة + أدمن) */
@import url('edu-brand.css');

:root {
    --edu-auth-navy: #101828;
    --edu-auth-navy-mid: #1a2d4a;
    --edu-auth-muted: #64748b;
    --edu-auth-border: #e2e8f0;
    --edu-auth-card: #ffffff;
    --edu-auth-radius: 16px;
    --edu-auth-orange: #FF5722;
    --edu-auth-orange-light: #ff7043;
    --edu-auth-orange-pale: #fff3e0;
}

.edu-auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        max(24px, env(safe-area-inset-top))
        20px
        max(24px, env(safe-area-inset-bottom));
    font-family: 'Tajawal', system-ui, sans-serif;
    background: #ffffff;
    color: var(--edu-auth-navy);
}

.edu-auth-shell {
    width: min(100%, 420px);
    flex: 0 0 auto;
}

/* ── العلامة التجارية ── */
.edu-auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.edu-auth-logo {
    height: 100px;
    width: auto;
    max-width: min(280px, 88vw);
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.edu-auth-title {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--edu-auth-navy);
}

.edu-auth-title i {
    color: var(--edu-auth-orange);
    font-size: 1.35rem;
}

.edu-auth-tagline {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--edu-auth-navy);
    line-height: 1.55;
}

.edu-auth-desc {
    margin: 0;
    font-size: 13px;
    color: var(--edu-auth-muted);
    line-height: 1.65;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.edu-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--edu-auth-orange-pale);
    border: 1px solid #ffccbc;
    color: var(--edu-auth-orange);
}

/* ── البطاقة البيضاء ── */
.edu-auth-card {
    background: var(--edu-auth-card);
    border: 1px solid var(--edu-auth-border);
    border-radius: var(--edu-auth-radius);
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
    color: var(--edu-auth-navy);
    width: 100%;
    box-sizing: border-box;
}

.edu-auth-card__head {
    text-align: center;
    margin-bottom: 18px;
}

.edu-auth-card__head h2 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--edu-auth-navy);
}

.edu-auth-card__head p {
    margin: 0;
    font-size: 13px;
    color: var(--edu-auth-muted);
    line-height: 1.55;
}

/* ── شبكة الملفات (ترحيب) ── */
.edu-auth-profiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.edu-auth-profiles__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--edu-auth-border);
    font-size: 10px;
    font-weight: 700;
    color: var(--edu-auth-navy);
    transition: border-color 0.15s, transform 0.15s;
}

.edu-auth-profiles__item--wide {
    grid-column: 2 / span 2;
}

.edu-auth-profiles__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.edu-auth-profiles__item[data-profile="visual"] .edu-auth-profiles__icon { background: #e3f2fd; color: #1565c0; }
.edu-auth-profiles__item[data-profile="hearing"] .edu-auth-profiles__icon { background: #fce4ec; color: #c62828; }
.edu-auth-profiles__item[data-profile="learning"] .edu-auth-profiles__icon { background: #fff3e0; color: #e65100; }
.edu-auth-profiles__item[data-profile="motor"] .edu-auth-profiles__icon { background: #e8f5e9; color: #2e7d32; }
.edu-auth-profiles__item[data-profile="autism"] .edu-auth-profiles__icon { background: #f3e5f5; color: #7b1fa2; }

/* ── أزرار ── */
.edu-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edu-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-sizing: border-box;
}

.edu-auth-btn--primary {
    background: linear-gradient(135deg, var(--edu-auth-orange) 0%, var(--edu-auth-orange-light) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}

.edu-auth-btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #e64a19 0%, var(--edu-auth-orange) 100%);
    box-shadow: 0 8px 24px rgba(255, 87, 34, 0.42);
}

.edu-auth-btn--outline {
    background: #fff;
    color: var(--edu-auth-navy);
    border: 2px solid var(--edu-auth-border);
}

.edu-auth-btn--outline:hover {
    border-color: var(--edu-auth-navy);
    background: #f8fafc;
}

.edu-auth-btn--navy {
    background: var(--edu-auth-navy);
    color: #fff;
}

.edu-auth-btn--navy:hover {
    opacity: 0.92;
}

/* ── نموذج الدخول ── */
.edu-auth-form {
    width: 100%;
    min-width: 0;
}

.edu-auth-field {
    margin-bottom: 14px;
    min-width: 0;
}

.edu-auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--edu-auth-muted);
}

.edu-auth-input-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.edu-auth-input-wrap > i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--edu-auth-muted);
    font-size: 14px;
    pointer-events: none;
}

.edu-auth-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 38px;
    border: 1px solid var(--edu-auth-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--edu-auth-navy);
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

.edu-auth-input:focus {
    outline: none;
    border-color: var(--edu-auth-navy);
    background: #fff;
}

.edu-auth-input-wrap--password .edu-auth-input {
    padding-left: 40px;
}

.edu-auth-toggle {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--edu-auth-muted);
    font-size: 15px;
    cursor: pointer;
}

.edu-auth-toggle:hover {
    color: var(--edu-auth-navy);
    background: rgba(16, 24, 40, 0.05);
}

.edu-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.edu-auth-alert i {
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── تبويبات الدخول ── */
.edu-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.edu-auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--edu-auth-border);
    text-decoration: none;
    color: var(--edu-auth-muted);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.edu-auth-tab i {
    font-size: 16px;
    color: var(--edu-auth-muted);
}

.edu-auth-tab.is-active {
    background: var(--edu-auth-orange-pale);
    border-color: #ffccbc;
    color: var(--edu-auth-orange);
    box-shadow: none;
}

.edu-auth-tab.is-active i {
    color: var(--edu-auth-orange);
    opacity: 1;
}

.edu-auth-form .edu-auth-btn {
    margin-top: 4px;
}

/* ── تذييل ── */
.edu-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 22px;
    font-size: 12px;
}

.edu-auth-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--edu-auth-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.edu-auth-footer a:hover {
    color: var(--edu-auth-navy);
    text-decoration: underline;
}

.edu-auth-footer span {
    opacity: 0.35;
    color: var(--edu-auth-muted);
}

.edu-auth-back {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--edu-auth-border);
    color: var(--edu-auth-navy);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.15s, border-color 0.15s;
}

.edu-auth-back:hover {
    background: var(--edu-auth-orange-pale);
    border-color: #ffccbc;
    color: var(--edu-auth-orange);
}

.edu-auth-brand--relative {
    position: relative;
}

.edu-auth-features {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
}

.edu-auth-features li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--edu-auth-muted);
}

.edu-auth-features i {
    font-size: 11px;
    color: var(--edu-auth-orange);
}

body.edu-access--reduced-motion .edu-auth-btn--primary:hover {
    transform: none;
}

/* ── تخصيص حسب الدور ── */
.edu-auth-card--learner {
    border-top: 3px solid var(--edu-auth-orange);
}
.edu-auth-card--employee {
    border-top: 3px solid var(--edu-auth-navy);
}
.edu-auth-card--trainer {
    border-top: 3px solid #7c3aed;
}

.edu-auth-badge--employee {
    background: #e8f0fe;
    border-color: #90caf9;
    color: #1565c0;
}
.edu-auth-badge--trainer {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #7c3aed;
}

.edu-auth-page--employee .edu-auth-title i {
    color: var(--edu-auth-navy);
}
.edu-auth-page--trainer .edu-auth-title i {
    color: #7c3aed;
}

/* ── EDU Access (ذوي الهمم) ── */
.edu-auth-page--access .edu-auth-title i {
    color: var(--edu-auth-orange);
}
.edu-auth-badge--access {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #e65100;
}
.edu-auth-card--access {
    border-top: 3px solid var(--edu-auth-orange);
}
.edu-auth-steps {
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--edu-auth-border);
    border-radius: 14px;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}
.edu-auth-steps h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--edu-auth-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-auth-steps h3 i {
    color: var(--edu-auth-orange);
}
.edu-auth-steps ol {
    margin: 0 0 12px;
    padding: 0 20px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--edu-auth-muted);
}
.edu-auth-steps ol strong {
    color: var(--edu-auth-navy);
}
.edu-auth-steps__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--edu-auth-orange);
    text-decoration: none;
}
.edu-auth-steps__link:hover {
    text-decoration: underline;
}

/* ── EDU Pay (المقسّطون) ── */
.edu-auth-page--payer .edu-auth-title i {
    color: var(--edu-auth-orange);
}
.edu-auth-badge--payer {
    background: var(--edu-auth-orange-pale);
    border-color: #ffccbc;
    color: #e65100;
}
.edu-auth-card--payer {
    border-top: 3px solid var(--edu-auth-orange);
}
.edu-auth-page--payer .edu-auth-btn--primary {
    background: linear-gradient(135deg, var(--edu-auth-orange), var(--edu-auth-orange-light));
}
.edu-auth-page--payer .edu-auth-btn--primary:hover {
    background: linear-gradient(135deg, #e64a19, var(--edu-auth-orange));
}
.edu-auth-page--payer .edu-auth-features i {
    color: var(--edu-auth-orange);
}

.edu-auth-footer--compact {
    font-size: 11px;
    gap: 6px 8px;
}

@media (max-width: 380px) {
    .edu-auth-profiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .edu-auth-profiles__item--wide {
        grid-column: 1 / -1;
    }
    .edu-auth-logo {
        height: 80px;
    }
}

/* ── صفحات قانونية EDU Access ── */
.edu-auth-shell--legal {
    max-width: 560px;
}
.edu-auth-brand--legal {
    margin-bottom: 8px;
    padding-bottom: 0;
}
.edu-auth-logo--sm {
    height: 72px;
    margin-bottom: 8px;
}
.edu-auth-title--legal {
    font-size: 1.35rem;
    margin-bottom: 4px;
}
.edu-auth-legal-main {
    width: 100%;
}
.edu-auth-legal-doc {
    background: #fff;
    border: 1px solid var(--edu-auth-border);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 4px 20px rgba(16, 24, 40, 0.06);
    margin-bottom: 14px;
}
.edu-auth-legal-doc__lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--edu-auth-navy);
}
.edu-auth-legal-doc__updated {
    margin: 0 0 14px;
    font-size: 11px;
    color: var(--edu-auth-muted);
    font-weight: 700;
}
.edu-auth-legal-section {
    margin-bottom: 18px;
}
.edu-auth-legal-section:last-child {
    margin-bottom: 0;
}
.edu-auth-legal-section h2 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--edu-auth-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-auth-legal-section h2 i {
    color: var(--edu-auth-orange);
    font-size: 14px;
}
.edu-auth-legal-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--edu-auth-muted);
}
.edu-auth-legal-section ul {
    margin: 8px 0 0;
    padding-right: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--edu-auth-muted);
}
.edu-auth-legal-section li {
    margin-bottom: 6px;
}
.edu-auth-legal-section a {
    color: var(--edu-auth-orange);
    font-weight: 700;
    text-decoration: none;
}
.edu-auth-legal-section a:hover {
    text-decoration: underline;
}
.edu-auth-legal-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.edu-auth-legal-switch__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 8px 6px;
    border-radius: 12px;
    border: 1px solid var(--edu-auth-border);
    background: #fff;
    color: var(--edu-auth-muted);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
}
.edu-auth-legal-switch__item i {
    font-size: 16px;
    color: var(--edu-auth-orange);
}
.edu-auth-legal-switch__item.is-active {
    border-color: var(--edu-auth-orange);
    background: var(--edu-auth-orange-pale);
    color: var(--edu-auth-navy);
}
.edu-auth-footer--legal {
    margin-top: 8px;
}
.edu-auth-footer--info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--edu-auth-border);
}
.edu-auth-footer--info a {
    font-size: 11px;
}
.edu-auth-consent {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--edu-auth-muted);
    text-align: center;
}
.edu-auth-consent a {
    color: var(--edu-auth-orange);
    font-weight: 700;
    text-decoration: none;
}
.edu-auth-consent a:hover {
    text-decoration: underline;
}

/* ── تسجيل ذوي الهmم + بانتظار التفعيل ── */
.edu-auth-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.edu-auth-alert--success i { color: #059669; }
.edu-auth-req { color: #dc2626; }
.edu-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 520px) {
    .edu-auth-field-row { grid-template-columns: 1fr; }
}
.edu-auth-textarea {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid var(--edu-auth-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
    box-sizing: border-box;
}
.edu-auth-textarea:focus {
    outline: none;
    border-color: var(--edu-auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.12);
}
.edu-auth-input-wrap--select .edu-auth-select {
    appearance: none;
    padding-left: 36px;
    cursor: pointer;
}
.edu-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--edu-auth-muted);
    margin: 4px 0 8px;
}
.edu-auth-check input { margin-top: 3px; flex-shrink: 0; }
.edu-auth-check a { color: var(--edu-auth-orange); font-weight: 700; }
.edu-auth-switch {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--edu-auth-muted);
}
.edu-auth-switch a { color: var(--edu-auth-orange); font-weight: 700; }
.edu-auth-steps--compact { margin-top: 14px; margin-bottom: 0; }
.edu-auth-btn--ghost {
    background: transparent;
    border: 1px solid var(--edu-auth-border);
    color: var(--edu-auth-navy);
    box-shadow: none;
}
.edu-auth-btn--ghost:hover { background: #f8fafc; }

.edu-auth-shell--pending { max-width: 480px; }
.edu-auth-pending__hero {
    text-align: center;
    padding: 24px 16px 20px;
    background: linear-gradient(145deg, #0f2744 0%, #1a3d5c 100%);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.edu-auth-pending__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.25) 0%, transparent 50%);
    pointer-events: none;
}
.edu-auth-pending__hero > * { position: relative; }
.edu-auth-pending__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.edu-auth-pending__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.35);
    margin-bottom: 10px;
}
.edu-auth-pending__hero h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}
.edu-auth-pending__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.92;
}
.edu-auth-pending__card {
    background: #fff;
    border: 1px solid var(--edu-auth-border);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}
.edu-auth-pending__status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--edu-auth-border);
}
.edu-auth-pending__status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
    animation: edu-auth-pulse 2s ease-in-out infinite;
}
@keyframes edu-auth-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.edu-auth-pending__status strong { display: block; font-size: 14px; color: var(--edu-auth-navy); }
.edu-auth-pending__status small { font-size: 11px; color: var(--edu-auth-muted); }
.edu-auth-pending__message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 14px;
}
.edu-auth-pending__message > i {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--edu-auth-orange);
    margin-top: 2px;
}
.edu-auth-pending__message h2 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--edu-auth-navy);
}
.edu-auth-pending__message p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.65;
    color: #7c2d12;
}
.edu-auth-pending__message p:last-child { margin-bottom: 0; }
.edu-auth-pending__note { font-size: 11px !important; opacity: 0.85; }
.edu-auth-pending__summary {
    margin: 0;
    display: grid;
    gap: 8px;
}
.edu-auth-pending__summary > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--edu-auth-border);
}
.edu-auth-pending__summary > div:last-child { border-bottom: 0; }
.edu-auth-pending__summary dt { color: var(--edu-auth-muted); font-weight: 600; }
.edu-auth-pending__summary dd { margin: 0; font-weight: 700; color: var(--edu-auth-navy); text-align: left; }
.edu-auth-pending__tips {
    background: #f8fafc;
    border: 1px solid var(--edu-auth-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.edu-auth-pending__tips h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--edu-auth-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-auth-pending__tips h3 i { color: var(--edu-auth-orange); }
.edu-auth-pending__tips ul {
    margin: 0;
    padding: 0 18px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--edu-auth-muted);
}
.edu-auth-pending__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.edu-auth-pending__actions .edu-auth-btn { flex: 1; min-width: 140px; justify-content: center; }

/* ── Language switcher ── */
.edu-auth-lang-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    width: 100%;
}
.edu-auth-lang-bar--pending { margin-bottom: 14px; }

.edu-access-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 3px 4px 3px 8px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.04);
    border: 1px solid rgba(16, 24, 40, 0.1);
}
.edu-access-lang__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--edu-auth-muted, #64748b);
    font-size: 11px;
    flex-shrink: 0;
}
.edu-access-lang__switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.06);
}
.edu-access-lang__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    color: var(--edu-auth-muted, #64748b) !important;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.edu-access-lang__btn:hover:not(.is-active) {
    color: var(--edu-auth-navy, #101828) !important;
    background: rgba(16, 24, 40, 0.06);
}
.edu-access-lang__btn.is-active {
    color: #fff !important;
    background: var(--edu-auth-orange, #FF5722) !important;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.35);
}
.edu-access-lang__btn:focus-visible {
    outline: 2px solid var(--edu-auth-orange, #FF5722);
    outline-offset: 2px;
}

/* Dark portal header override (when auth CSS also loads) */
.portal-header--access-app .edu-access-lang {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.portal-header--access-app .edu-access-lang__icon {
    color: rgba(255, 255, 255, 0.55);
}
.portal-header--access-app .edu-access-lang__switch {
    background: rgba(0, 0, 0, 0.18);
}
.portal-header--access-app .edu-access-lang__btn {
    color: rgba(255, 255, 255, 0.72) !important;
}
.portal-header--access-app .edu-access-lang__btn:hover:not(.is-active) {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.portal-header--access-app .edu-access-lang__btn.is-active {
    color: #fff !important;
    background: var(--edu-orange, #FF5722) !important;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.5);
}
.edu-access-lang__sep { display: none; }

html[dir="ltr"] .edu-auth-back i,
html[dir="ltr"] .edu-access-lesson__back i { transform: scaleX(-1); }
html[dir="ltr"] .edu-auth-back {
    right: auto;
    left: 0;
}
html[dir="ltr"] .edu-auth-input-wrap > i {
    right: auto;
    left: 12px;
}
html[dir="ltr"] .edu-auth-input-wrap .edu-auth-input {
    padding: 12px 12px 12px 38px;
    text-align: left;
}
html[dir="ltr"] .edu-auth-input-wrap--password .edu-auth-input {
    padding: 12px 40px 12px 38px;
}
html[dir="ltr"] .edu-auth-toggle {
    left: auto;
    right: 6px;
}
html[dir="ltr"] .edu-auth-input-wrap--select .edu-auth-select {
    padding-left: 38px;
    padding-right: 12px;
}
html[dir="ltr"] .edu-auth-steps {
    text-align: left;
}
html[dir="ltr"] .edu-auth-steps ol {
    padding-left: 1.25em;
    padding-right: 0;
}
html[dir="ltr"] .edu-auth-pending__summary dd { text-align: right; }
html[dir="ltr"] .portal-header--access-app .portal-header__brand small,
html[dir="ltr"] .edu-access-home__greeting { direction: ltr; text-align: left; }

.access-applicants-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.access-applicants-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.access-applicants-actions__inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}
.access-applicants-reviewed {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 11px;
}
.access-applicant-form-card {
    margin-bottom: 16px;
    padding: 18px 20px;
    scroll-margin-top: 80px;
}
.access-applicant-form-card__head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--navy, #0f172a);
}
.access-applicant-form-card__head p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
}
.access-applicant-form-card__hint {
    margin: 0;
    padding-top: 10px;
    font-size: 12px;
    color: #64748b;
}
.access-applicant-form--narrow {
    max-width: 520px;
}
.access-applicant-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.access-applicants-detail td {
    background: #f8fafc;
    font-size: 12px;
    color: #64748b;
}
.access-applicants-detail p { margin: 0 0 4px; }
