/* ================================================================
   auth.css  v3  — Premium Auth Design System
   Split-panel | Responsive | RTL/LTR | WCAG-AA
   ================================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
    --auth-gold:           #ac8440;
    --auth-gold-dark:      #916d31;
    --auth-gold-light:     #e5ddd0;
    --auth-gold-xlight:    #f9f5ef;
    --auth-teal:           #066271;
    --auth-teal-dark:      #044d5a;
    --auth-teal-light:     #0b7f91;
    --auth-teal-xlight:    #e6f4f6;
    --auth-teal-surface:   #f0fafc;
    --auth-dark-bg:        #0e0c08;
    --auth-text-primary:   #1a1f2e;
    --auth-text-muted:     #6b7280;
    --auth-text-faint:     #9ca3af;
    --auth-border:         #e5e7eb;
    --auth-bg-field:       #f9fafb;
    --auth-r:              12px;
    --auth-r-sm:           8px;
    --auth-ease:           .2s ease;
    --auth-ease-md:        .3s ease;
    --auth-shadow-gold:    0 4px 18px rgba(172,132,64,.30);
    --auth-shadow-gold-lg: 0 8px 32px rgba(172,132,64,.46);
    --auth-shadow-teal:    0 4px 18px rgba(6,98,113,.22);
    --auth-shadow-teal-lg: 0 8px 32px rgba(6,98,113,.34);
}

/* ── Page shell ─────────────────────────────────────────────── */
.auth-split-body {
    margin: 0 !important;
    padding: 0;
    margin-bottom: 0 !important;
    background: #1c1407;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-split-page {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ═══════════════════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════════════════ */
.auth-left {
    flex: 0 0 52%;
    position: relative;
    overflow: hidden;
    /* Deep warm gold gradient — ACTVET official brand identity */
    background: linear-gradient(155deg, #2a1e09 0%, #1c1407 45%, #241a08 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px,4vw,54px) clamp(24px,4.5vw,58px);
}

/* Subtle dot texture — refined gold dots on dark warm background */
.auth-left::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(172,132,64,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Warm gold ambient glow — top-left corner */
.auth-left::after {
    content: '';
    position: absolute; top: -180px; left: -130px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(172,132,64,.13) 0%, rgba(201,154,74,.05) 38%, transparent 56%);
    pointer-events: none;
    z-index: 0;
}

/* ── Decorative orbs — reduced to 2, very subtle, slow ── */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.auth-orb-1 {
    width: clamp(280px,38vw,500px);
    height: clamp(280px,38vw,500px);
    background: radial-gradient(circle, rgba(172,132,64,.09) 0%, transparent 65%);
    filter: blur(70px);
    top: -140px; left: -110px;
    animation: auth-orb-drift-a 24s ease-in-out infinite;
}
.auth-orb-2 {
    width: clamp(160px,22vw,300px);
    height: clamp(160px,22vw,300px);
    background: radial-gradient(circle, rgba(201,154,74,.08) 0%, transparent 65%);
    filter: blur(55px);
    bottom: 30px; right: -50px;
    animation: auth-orb-drift-b 28s ease-in-out 6s infinite;
}
.auth-orb-3 {
    width: clamp(240px,32vw,420px);
    height: clamp(240px,32vw,420px);
    background: radial-gradient(circle, rgba(172,132,64,.06) 0%, transparent 65%);
    filter: blur(65px);
    bottom: -100px; right: -60px;
    animation: auth-orb-drift-b 34s ease-in-out 3s infinite;
}

@keyframes auth-orb-drift-a {
    0%,100% { transform: translate3d(0,0,0); }
    50%      { transform: translate3d(18px,-10px,0); }
}
@keyframes auth-orb-drift-b {
    0%,100% { transform: translate3d(0,0,0); }
    50%      { transform: translate3d(-14px,16px,0); }
}

/* Arch watermark */
.auth-arch {
    position: absolute; right: -20px; top: 50%;
    transform: translateY(-50%);
    z-index: 1; opacity: .04; pointer-events: none;
}
.auth-arch svg {
    width: clamp(180px,22vw,300px); height: auto; fill: var(--auth-gold);
}

/* ── Floating education icons — background atmosphere ── */
.auth-edu-icons {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
    overflow: hidden;
}
.auth-edu-icon {
    position: absolute;
    stroke: var(--auth-gold); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.auth-edu-icon-1 { width: 44px; height: 44px; right: 8%; top: 22%; opacity: .09; animation: auth-edu-float-a 26s ease-in-out infinite; }
.auth-edu-icon-2 { width: 50px; height: 50px; left: 4%; top: 47%; opacity: .07; animation: auth-edu-float-b 32s ease-in-out 4s infinite; }
.auth-edu-icon-3 { width: 32px; height: 32px; right: 5%; top: 43%; opacity: .08; animation: auth-edu-float-c 28s ease-in-out 8s infinite; }
.auth-edu-icon-4 { width: 36px; height: 36px; right: 10%; bottom: 24%; opacity: .09; animation: auth-edu-float-a 22s ease-in-out 12s infinite; }
.auth-edu-icon-5 { width: 42px; height: 42px; left: 5%; bottom: 28%; opacity: .07; animation: auth-edu-float-b 36s ease-in-out 2s infinite; }
.auth-edu-icon-6 { width: 28px; height: 28px; left: 7%; top: 28%; opacity: .07; animation: auth-edu-float-c 30s ease-in-out 6s infinite; }
.auth-edu-icon-7 { width: 38px; height: 38px; left: 46%; bottom: 14%; opacity: .06; animation: auth-edu-float-a 24s ease-in-out 10s infinite; }

@keyframes auth-edu-float-a {
    0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
    33%       { transform: translate3d(8px,-15px,0) rotate(4deg); }
    66%       { transform: translate3d(-5px,-8px,0) rotate(-2deg); }
}
@keyframes auth-edu-float-b {
    0%, 100% { transform: translate3d(0,0,0); }
    40%       { transform: translate3d(-10px,-18px,0); }
    70%       { transform: translate3d(6px,-10px,0); }
}
@keyframes auth-edu-float-c {
    0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
    50%       { transform: translate3d(10px,-13px,0) rotate(-5deg); }
}

/* ── Logo + language row ── */
.auth-left-top {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.auth-brand-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
    transition: opacity var(--auth-ease);
}
.auth-brand-logo:hover { opacity: .82; }
.auth-brand-logo:focus-visible {
    outline: 2px solid var(--auth-gold); outline-offset: 4px; border-radius: 8px;
}
.auth-brand-emblem {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--auth-gold) 0%, var(--auth-gold-dark) 100%);
    border-radius: var(--auth-r);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(172,132,64,.30);
    transition: box-shadow var(--auth-ease);
}
.auth-brand-logo:hover .auth-brand-emblem { box-shadow: 0 4px 20px rgba(172,132,64,.50); }
.auth-brand-emblem svg { width: 24px; height: 24px; fill: #fff; }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.auth-brand-text strong { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.auth-brand-text span   { font-size: 11px; color: var(--auth-gold); letter-spacing: .6px; text-transform: uppercase; }

/* ── Application logo (replaces SVG emblem) ── */
.auth-brand-img-wrap {
    background: #ffffff;
    border-radius: var(--auth-r);
    padding: 10px 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 14px rgba(0,0,0,.28);
    transition: box-shadow var(--auth-ease);
    flex-shrink: 0;
}
.auth-brand-logo:hover .auth-brand-img-wrap {
    box-shadow: 0 6px 24px rgba(0,0,0,.38);
}
.auth-brand-img {
    height: 76px; width: auto; display: block;
}

.auth-lang-form { margin: 0; }
.auth-lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 100px;
    padding: 7px 16px 7px 12px;
    cursor: pointer; white-space: nowrap;
    color: rgba(255,255,255,.58);
    font-size: 12.5px; font-weight: 500;
    font-family: inherit;
    transition: background var(--auth-ease), border-color var(--auth-ease),
                color var(--auth-ease), box-shadow var(--auth-ease);
}
.auth-lang-btn:hover, .auth-lang-btn:focus-visible {
    background: rgba(172,132,64,.14);
    border-color: rgba(172,132,64,.32);
    color: var(--auth-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(172,132,64,.09);
}
.auth-lang-btn svg { width: 15px; height: 15px; opacity: .70; }

/* ── Hero ── */
.auth-left-hero {
    position: relative; z-index: 2;
    max-width: 480px;
}
.auth-badge-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(172,132,64,.10);
    border: 1px solid rgba(172,132,64,.22);
    border-radius: 100px;
    padding: 5px 14px 5px 8px;
    margin-bottom: 22px;
}
/* Static dot — no pulse (cleaner, less flashy) */
.auth-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--auth-gold);
    flex-shrink: 0;
    opacity: .90;
}
.auth-badge-pill span {
    font-size: 11px; font-weight: 600;
    color: var(--auth-gold); letter-spacing: .5px; text-transform: uppercase;
}

.auth-hero-title {
    font-size: clamp(23px,2.9vw,37px);
    font-weight: 800; line-height: 1.18; color: #ffffff;
    margin: 0 0 14px; letter-spacing: -.5px;
}
.auth-hero-title .auth-gold { color: var(--auth-gold); }
.auth-hero-desc {
    font-size: clamp(12.5px,.95vw,14px); line-height: 1.72;
    color: rgba(255,240,210,.50);
    margin-bottom: 28px; max-width: 420px;
}

.auth-features { display: flex; flex-direction: column; gap: 11px; }
.auth-feature-item { display: flex; align-items: center; gap: 13px; }
.auth-feature-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: var(--auth-r-sm);
    background: rgba(172,132,64,.07);
    border: 1px solid rgba(172,132,64,.14);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--auth-ease), border-color var(--auth-ease);
}
.auth-feature-item:hover .auth-feature-icon {
    background: rgba(172,132,64,.14);
    border-color: rgba(172,132,64,.26);
}
.auth-feature-icon svg {
    width: 16px; height: 16px;
    stroke: var(--auth-gold); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-feature-text strong {
    display: block; font-size: 12.5px; font-weight: 600;
    color: rgba(255,240,210,.82); margin-bottom: 1px;
}
.auth-feature-text small { font-size: 11px; color: rgba(255,240,210,.38); }

/* ── Admissions journey steps ── */
.auth-journey { display: flex; align-items: flex-start; gap: 0; }
.auth-journey-step {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.auth-journey-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(172,132,64,.09);
    border: 1px solid rgba(172,132,64,.20);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--auth-ease), border-color var(--auth-ease), box-shadow var(--auth-ease);
}
.auth-journey-step:hover .auth-journey-icon {
    background: rgba(172,132,64,.17);
    border-color: rgba(172,132,64,.34);
    box-shadow: 0 2px 12px rgba(172,132,64,.18);
}
.auth-journey-icon svg {
    width: 19px; height: 19px;
    stroke: var(--auth-gold); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-journey-label {
    font-size: 11px; font-weight: 600;
    color: rgba(255,240,210,.70);
    text-align: center; white-space: nowrap;
}
.auth-journey-arrow {
    flex: 0 0 auto; width: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 11px;
    color: rgba(172,132,64,.38);
}
.auth-journey-arrow svg {
    width: 20px; height: 7px;
    stroke: currentColor; fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Stats bar */
.auth-left-stats {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
}
.auth-stat-item { flex: 1; text-align: center; }
.auth-stat-item + .auth-stat-item { border-left: 1px solid rgba(255,255,255,.08); }
.auth-stat-number {
    display: block; font-size: 20px; font-weight: 700;
    color: var(--auth-gold); letter-spacing: -.5px;
}
.auth-stat-label {
    font-size: 10px; color: rgba(255,240,210,.35);
    text-transform: uppercase; letter-spacing: .6px;
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT PANEL — Form
═══════════════════════════════════════════════════════════════ */
.auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(28px,3.5vw,52px) clamp(20px,4vw,48px);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Corner gradient accents */
.auth-right::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 220px; height: 220px;
    background: radial-gradient(circle at top right, rgba(172,132,64,.07) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.auth-right::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 170px; height: 170px;
    background: radial-gradient(circle at bottom left, rgba(172,132,64,.05) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}

/* Animated background canvas */
.auth-right-canvas {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Grid removed — too mechanical */
.auth-right-grid { display: none; }

/* Two very subtle ambient blobs — no spinning geometric shapes */
.auth-particle { position: absolute; border-radius: 50%; will-change: transform; }

.auth-particle-1 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(172,132,64,.045) 0%, transparent 70%);
    top: -70px; right: -70px;
    animation: auth-blob-a 24s ease-in-out infinite;
}
.auth-particle-2 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(172,132,64,.035) 0%, transparent 70%);
    bottom: 4%; left: -40px;
    animation: auth-blob-b 28s ease-in-out infinite;
}
.auth-particle-3,
.auth-particle-4,
.auth-particle-5,
.auth-particle-6 { display: none; }

@keyframes auth-blob-a {
    0%,100% { transform: translate3d(0,0,0); }
    50%      { transform: translate3d(-10px,16px,0); }
}
@keyframes auth-blob-b {
    0%,100% { transform: translate3d(0,0,0); }
    50%      { transform: translate3d(12px,-12px,0); }
}

/* ── Inner form wrapper ── */
.auth-right-inner {
    width: 100%; max-width: 400px;
    position: relative; z-index: 1;
    margin-top: auto; margin-bottom: auto;
    animation: auth-form-enter .42s ease both;
}
@keyframes auth-form-enter {
    from { opacity: 0; transform: translateY(11px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form header ── */
.auth-form-header { margin-bottom: 22px; }
.auth-eyebrow {
    font-size: 11px; font-weight: 600; color: var(--auth-gold);
    letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px;
}
.auth-form-header h2 {
    font-size: clamp(20px,2.2vw,25px); font-weight: 700;
    color: var(--auth-text-primary); letter-spacing: -.4px; margin-bottom: 6px;
}
.auth-form-header p {
    font-size: 13.5px; color: var(--auth-text-muted); line-height: 1.55; margin: 0;
}

/* ── Institute strip ── */
.auth-institute-strip {
    display: flex; align-items: center; gap: 10px;
    background: var(--auth-gold-xlight);
    border: 1px solid var(--auth-gold-light);
    border-radius: var(--auth-r);
    padding: 10px 14px; margin-bottom: 18px;
    transition: border-color var(--auth-ease), background var(--auth-ease);
}
.auth-institute-strip:hover {
    border-color: rgba(172,132,64,.38);
    background: #f4ede1;
}
.auth-institute-strip svg {
    width: 17px; height: 17px; flex-shrink: 0;
    stroke: var(--auth-gold); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-institute-strip strong {
    display: block; font-size: 12px; font-weight: 600; color: var(--auth-gold-dark);
}
.auth-institute-strip span { font-size: 11px; color: var(--auth-text-faint); }

/* ── User-type tabs ── */
.auth-user-tabs {
    display: flex;
    background: var(--auth-gold-xlight);
    border-radius: var(--auth-r);
    padding: 4px; gap: 4px;
    margin-bottom: 20px;
}
.auth-user-tab {
    flex: 1; text-align: center;
    padding: 9px 6px;
    border-radius: var(--auth-r-sm);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    color: var(--auth-text-muted);
    border: none; background: transparent;
    font-family: inherit;
    transition: background var(--auth-ease), color var(--auth-ease), box-shadow var(--auth-ease);
    outline: none;
}
.auth-user-tab:focus-visible { box-shadow: 0 0 0 2px var(--auth-gold); }
.auth-user-tab.active {
    background: #fff;
    color: var(--auth-gold-dark);
    box-shadow: 0 1px 5px rgba(0,0,0,.10);
}

/* ── SSO panels ── */
.auth-sso-panel { display: none; }
.auth-sso-panel.visible {
    display: block;
    animation: auth-panel-appear var(--auth-ease-md) both;
}
@keyframes auth-panel-appear {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-sso-heading {
    text-align: center; margin-bottom: 18px;
    font-size: 13px; color: var(--auth-text-muted); line-height: 1.6;
}

/* ── UAE PASS button ── */
/* Rounded-rectangle shape, white background, thin light-gray border, black text —
   per UAE PASS reference design. Not a colored brand button like Azure AD below. */
.btn-uaepass {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 48px;
    background: #FFFFFF; color: #000000;
    font-size: 15px; font-weight: 600;
    border: 1px solid #D0D5DD; border-radius: 8px; cursor: pointer;
    font-family: inherit; letter-spacing: .1px; text-decoration: none;
    transition: background var(--auth-ease), border-color var(--auth-ease),
                box-shadow var(--auth-ease), transform var(--auth-ease);
}
.btn-uaepass svg,
.btn-uaepass img { flex-shrink: 0; }
.btn-uaepass img { filter: none; }
.btn-uaepass:hover {
    background: #f9fafb;
    border-color: #b7bec9;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16,24,40,.08);
}
.btn-uaepass:active  { transform: translateY(0); }
.btn-uaepass:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16,24,40,.14); }

/* ── Azure AD button ── */
.btn-azure {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; height: 50px;
    background: #0078d4; color: #fff;
    font-size: 15px; font-weight: 600;
    border: none; border-radius: var(--auth-r); cursor: pointer;
    box-shadow: 0 3px 14px rgba(0,120,212,.22);
    font-family: inherit; letter-spacing: .2px;
    position: relative; overflow: hidden;
    transition: background var(--auth-ease), box-shadow var(--auth-ease), transform var(--auth-ease);
}
.btn-azure::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-100%);
    transition: transform .55s ease;
}
.btn-azure:hover::after { transform: translateX(100%); }
.btn-azure:hover {
    background: #106ebe;
    box-shadow: 0 6px 22px rgba(0,120,212,.38);
    transform: translateY(-1px);
}
.btn-azure:active  { transform: translateY(0); }
.btn-azure:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,120,212,.30); }

/* ── SSO info card ── */
.auth-sso-info {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--auth-bg-field); border: 1px solid var(--auth-border);
    border-radius: var(--auth-r); padding: 11px 14px; margin-top: 13px;
}
.auth-sso-info svg {
    width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
    stroke: var(--auth-text-faint); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-sso-info p { font-size: 12px; color: var(--auth-text-muted); line-height: 1.55; margin: 0; }

/* ── OR divider ── */
.auth-or-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 17px 0;
    font-size: 11px; font-weight: 600; color: var(--auth-text-faint);
    text-transform: uppercase; letter-spacing: .8px;
}
.auth-or-divider::before, .auth-or-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--auth-border);
}

/* ── Input wrapper with leading icon ── */
.auth-input-wrap {
    position: relative;
    margin-bottom: 11px;
}
.auth-input-wrap > svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; pointer-events: none;
    stroke: var(--auth-text-faint); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    z-index: 1;
    transition: stroke var(--auth-ease);
}
.auth-input-wrap:focus-within > svg { stroke: var(--auth-gold); }

/* ── Password visibility toggle ── */
.auth-pw-toggle {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 4px 3px; cursor: pointer;
    z-index: 2; color: var(--auth-text-faint);
    display: flex; align-items: center; line-height: 1;
    border-radius: 4px;
    transition: color var(--auth-ease);
}
.auth-pw-toggle:hover  { color: var(--auth-gold); }
.auth-pw-toggle:focus-visible {
    outline: none; color: var(--auth-gold);
    box-shadow: 0 0 0 2px rgba(172,132,64,.26);
}
.auth-pw-toggle svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none; display: block;
}
.auth-input-wrap.has-pw-toggle .form-control { padding-right: 42px !important; }

/* ── Form controls ── */
.auth-right .form-control,
.auth-right .form-control.bg-transparent {
    background: var(--auth-bg-field) !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    color: var(--auth-text-primary) !important;
    font-size: 14px;
    transition: border-color var(--auth-ease), box-shadow var(--auth-ease),
                background var(--auth-ease) !important;
}
.auth-right .form-control:hover { border-color: #b8bcc5 !important; }
.auth-right .form-control:focus {
    background: #fff !important;
    border-color: var(--auth-gold) !important;
    box-shadow: 0 0 0 3px rgba(172,132,64,.12) !important;
    outline: none !important;
}
.auth-right .form-control::placeholder {
    color: var(--auth-text-faint) !important;
    font-weight: 400 !important;
}

.auth-input-wrap .form-control {
    height: 46px;
    padding-left: 42px !important;
}

/* Floating-label inputs */
.auth-right .form-floating > .form-control {
    height: auto !important; min-height: 56px;
    padding-top: 1.625rem !important;
    padding-bottom: .625rem !important;
}
.auth-right .form-floating > .form-control:focus ~ label,
.auth-right .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--auth-gold); opacity: 1;
}
.auth-right .form-floating > label { color: var(--auth-text-faint); }

/* ── Forgot row ── */
.auth-forgot-row {
    display: flex; justify-content: flex-end;
    margin: 4px 0 15px;
}
.auth-forgot-row a {
    font-size: 12.5px; color: var(--auth-gold); font-weight: 500; text-decoration: none;
    transition: color var(--auth-ease);
}
.auth-forgot-row a:hover { color: var(--auth-gold-dark); text-decoration: underline; }

/* ── Gold primary button ── */
.auth-right .btn.btn-primary {
    background: linear-gradient(135deg, var(--auth-gold) 0%, #c9993f 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    min-height: 48px;
    letter-spacing: .2px;
    box-shadow: var(--auth-shadow-gold) !important;
    position: relative; overflow: hidden;
    transition: background var(--auth-ease), box-shadow var(--auth-ease),
                transform var(--auth-ease) !important;
}
.auth-right .btn.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-100%);
    transition: transform .55s ease;
    pointer-events: none;
}
.auth-right .btn.btn-primary:hover::before { transform: translateX(100%); }
.auth-right .btn.btn-primary:hover,
.auth-right .btn.btn-primary:focus {
    background: linear-gradient(135deg, var(--auth-gold-dark) 0%, var(--auth-gold) 100%) !important;
    box-shadow: var(--auth-shadow-gold-lg) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}
.auth-right .btn.btn-primary:active  { transform: translateY(0) !important; }
.auth-right .btn.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(172,132,64,.34) !important;
}

/* ── Notices ── */
.auth-pw-hint {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 10px; padding: 11px 14px; margin-bottom: 17px;
}
.auth-pw-hint svg {
    width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
    stroke: #d97706; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-pw-hint p { font-size: 12.5px; color: #92400e; line-height: 1.55; margin: 0; }

.auth-error-alert {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fef2f2; border: 1px solid #fca5a5;
    border-radius: 10px; padding: 11px 14px; margin-bottom: 15px;
}
.auth-error-alert svg {
    width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
    stroke: #ef4444; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.auth-error-alert p { font-size: 13px; color: #b91c1c; line-height: 1.45; margin: 0; }

/* ── Register / help rows ── */
.auth-register-row,
.auth-help-row {
    text-align: center; margin-top: 17px;
    font-size: 13px; color: var(--auth-text-muted);
}
.auth-register-row a, .auth-help-row a {
    color: var(--auth-gold); font-weight: 600; text-decoration: none;
    transition: color var(--auth-ease);
}
.auth-register-row a:hover, .auth-help-row a:hover {
    color: var(--auth-gold-dark); text-decoration: underline;
}

/* ── Link overrides ── */
.auth-right .link-primary {
    color: var(--auth-gold) !important; font-weight: 600; text-decoration: none;
}
.auth-right .link-primary:hover { color: var(--auth-gold-dark) !important; text-decoration: underline; }
.auth-right .text-gray-500 { color: var(--auth-text-muted) !important; }
.auth-right .text-muted    { color: var(--auth-text-faint) !important; font-size: .8rem; }

/* Password strength bars */
.auth-right [data-kt-password-meter-control="highlight"] .flex-grow-1 {
    border-radius: 4px !important; height: 5px !important;
}

/* ── Footer ── */
.auth-right-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--auth-border);
    font-size: 11px; color: var(--auth-text-faint);
}
.auth-right-footer a {
    color: var(--auth-text-faint); text-decoration: none;
    transition: color var(--auth-ease);
}
.auth-right-footer a:hover { color: var(--auth-gold); }
.auth-footer-links { display: flex; gap: 14px; }

/* ── Spacing helpers ── */
.auth-right .fv-row { margin-bottom: 11px; }
.auth-right .fv-row.mb-4 { margin-bottom: 13px; }
.auth-right .fv-row.mb-8 { margin-bottom: 20px; }

.auth-error-img {
    max-height: 180px; width: auto;
    margin: 0 auto 1.5rem; display: block;
}

/* Error / access-denied page text colors */
.auth-error-heading { color: #1c1510; }
.auth-error-subtext  { color: #9a8f82; }

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .auth-orb,
    .auth-particle,
    .auth-edu-icon,
    .auth-right-inner,
    .auth-sso-panel { animation: none !important; opacity: 1 !important; }

    .btn-uaepass, .btn-azure, .auth-right .btn.btn-primary {
        transition: background var(--auth-ease), box-shadow var(--auth-ease) !important;
    }
    .btn-uaepass::after,
    .btn-azure::after,
    .auth-right .btn.btn-primary::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RTL OVERRIDES
═══════════════════════════════════════════════════════════════ */
html[dir="rtl"] .auth-left  { order: 2; }
html[dir="rtl"] .auth-right { order: 1; }

/* Mirror arch + orbs */
html[dir="rtl"] .auth-arch  { right: auto; left: -20px; }
html[dir="rtl"] .auth-orb-2 { right: auto; left: -50px; }

/* Flip the teal glow to the top-right corner in RTL */
html[dir="rtl"] .auth-left::after {
    left: auto; right: -130px;
}

/* Stat separators */
html[dir="rtl"] .auth-stat-item + .auth-stat-item {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,.08);
}

/* Corner gradients — flip horizontal */
html[dir="rtl"] .auth-right::before {
    right: auto; left: 0;
    background: radial-gradient(circle at top left, rgba(172,132,64,.07) 0%, transparent 65%);
}
html[dir="rtl"] .auth-right::after {
    left: auto; right: 0;
    background: radial-gradient(circle at bottom right, rgba(172,132,64,.05) 0%, transparent 65%);
}

/* Input leading icon: move to right */
html[dir="rtl"] .auth-input-wrap > svg {
    left: auto; right: 14px;
}
html[dir="rtl"] .auth-input-wrap .form-control {
    padding-left: 0.75rem !important;
    padding-right: 42px !important;
}

/* Password toggle: move to left side in RTL */
html[dir="rtl"] .auth-pw-toggle {
    right: auto; left: 13px;
}
html[dir="rtl"] .auth-input-wrap.has-pw-toggle .form-control {
    padding-right: 42px !important;
    padding-left: 42px !important;
}

/* Mirror floating icons */
html[dir="rtl"] .auth-edu-icon-1 { right: auto; left:  8%; }
html[dir="rtl"] .auth-edu-icon-2 { left:  auto; right: 4%; }
html[dir="rtl"] .auth-edu-icon-3 { right: auto; left:  5%; }
html[dir="rtl"] .auth-edu-icon-4 { right: auto; left: 10%; }
html[dir="rtl"] .auth-edu-icon-5 { left:  auto; right: 5%; }
html[dir="rtl"] .auth-edu-icon-6 { left:  auto; right: 7%; }
/* Journey arrow flip */
html[dir="rtl"] .auth-journey-arrow svg { transform: scaleX(-1); }

html[dir="rtl"] .auth-forgot-row { justify-content: flex-start; }
html[dir="rtl"] .auth-right-footer { flex-direction: row-reverse; }
html[dir="rtl"] .auth-footer-links  { flex-direction: row-reverse; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — WIDTH BREAKPOINTS
═══════════════════════════════════════════════════════════════ */

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
    .auth-left { flex: 0 0 50%; }
}

/* Standard laptop (≤1200px) */
@media (max-width: 1200px) {
    .auth-left { flex: 0 0 50%; padding: 36px 40px; }
    .auth-hero-title { font-size: 27px; }
}

/* Tablet landscape / small laptop width (≤1024px) */
@media (max-width: 1024px) {
    .auth-left { flex: 0 0 46%; padding: 28px 30px; }
    .auth-hero-title { font-size: 24px; }
    .auth-hero-desc  { font-size: 13px; margin-bottom: 22px; }
    .auth-right { padding: 30px 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — HEIGHT BREAKPOINTS (small laptop / 1366×768 fix)
   Scoped to min-width: 769px so they don't conflict with mobile stack
═══════════════════════════════════════════════════════════════ */

/* 1440×900, 1366×900 range */
@media (max-height: 900px) and (min-width: 769px) {
    .auth-badge-pill  { margin-bottom: 14px; }
    .auth-hero-desc   { margin-bottom: 20px; }
    .auth-features    { gap: 9px; }
    .auth-left-stats  { padding-top: 16px; }

    .auth-right { padding-top: 24px; padding-bottom: 24px; }
    .auth-form-header { margin-bottom: 18px; }
    .auth-user-tabs   { margin-bottom: 16px; }
    .auth-sso-info    { margin-top: 10px; padding: 10px 12px; }
    .auth-or-divider  { margin: 13px 0; }
    .auth-register-row, .auth-help-row { margin-top: 13px; }
    .auth-right-footer { margin-top: 20px; padding-top: 14px; }

    .auth-brand-img      { height: 64px; }
    .auth-brand-img-wrap { padding: 9px 20px; }

    .auth-journey-icon { width: 38px; height: 38px; }
    .auth-journey-icon svg { width: 17px; height: 17px; }
}

/* 1366×768, 1280×720 */
@media (max-height: 768px) and (min-width: 769px) {
    /* Right panel: compact vertical padding; margin:auto on inner handles centering */
    .auth-right { padding-top: 20px; padding-bottom: 20px; }

    .auth-form-header  { margin-bottom: 13px; }
    .auth-form-header h2 { font-size: 20px; }
    .auth-institute-strip { padding: 8px 12px; margin-bottom: 12px; }
    .auth-user-tabs    { margin-bottom: 13px; padding: 3px; }
    .auth-user-tab     { padding: 8px 6px; }
    .auth-sso-heading  { margin-bottom: 11px; font-size: 12.5px; }
    .auth-sso-info     { padding: 9px 11px; margin-top: 9px; }
    .auth-or-divider   { margin: 11px 0; }
    .auth-input-wrap .form-control { height: 42px; }
    .auth-input-wrap   { margin-bottom: 8px; }
    .auth-forgot-row   { margin: 2px 0 11px; }
    .btn-uaepass, .btn-azure           { height: 46px; font-size: 14px; }
    .auth-right .btn.btn-primary       { min-height: 44px; font-size: 14px !important; }
    .auth-register-row, .auth-help-row { margin-top: 11px; }
    .auth-right-footer { margin-top: 14px; padding-top: 11px; }

    /* Left panel compact */
    .auth-left { padding-top: 20px; padding-bottom: 18px; }
    .auth-badge-pill   { margin-bottom: 10px; }
    .auth-hero-title   { font-size: clamp(18px,2.2vw,23px); margin-bottom: 8px; }
    .auth-hero-desc    { font-size: 12.5px; margin-bottom: 14px; }
    .auth-features     { gap: 7px; }
    .auth-feature-icon { width: 32px; height: 32px; }
    .auth-feature-icon svg { width: 14px; height: 14px; }
    .auth-feature-text strong { font-size: 12px; }
    .auth-feature-text small  { font-size: 10.5px; }
    .auth-left-stats   { padding-top: 12px; }
    .auth-stat-number  { font-size: 17px; }
    .auth-stat-label   { font-size: 9.5px; }
    .auth-brand-emblem { width: 38px; height: 38px; }
    .auth-brand-text strong { font-size: 14px; }
    .auth-brand-img      { height: 52px; }
    .auth-brand-img-wrap { padding: 7px 16px; }

    .auth-journey-icon { width: 34px; height: 34px; border-radius: 9px; }
    .auth-journey-icon svg { width: 15px; height: 15px; }
    .auth-journey-label { font-size: 10px; }
    .auth-journey-arrow { margin-top: 8px; width: 16px; }
    .auth-edu-icon-2 { width: 38px; height: 38px; }
    .auth-edu-icon-5 { display: none; }
    .auth-edu-icon-7 { display: none; }
}

/* Very short screens — hide non-essential left panel sections */
@media (max-height: 680px) and (min-width: 769px) {
    .auth-hero-desc  { display: none; }
    .auth-left-stats { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET / MOBILE
═══════════════════════════════════════════════════════════════ */

/* Tablet portrait (≤768px) — stack panels */
@media (max-width: 768px) {
    .auth-split-page { flex-direction: column; }

    html[dir="rtl"] .auth-left,
    html[dir="rtl"] .auth-right { order: unset; }

    .auth-left {
        flex: none;
        padding: 20px 20px 24px;
    }
    .auth-left-hero   { max-width: 100%; }
    .auth-hero-title  { font-size: 21px; margin-bottom: 4px; }
    .auth-hero-desc   { display: none; }
    .auth-features    { display: none; }
    .auth-left-stats  { display: none; }
    .auth-arch        { display: none; }
    .auth-badge-pill  { margin-bottom: 4px; }

    .auth-right { padding: 24px 20px; }
    .auth-right-inner { max-width: 100%; margin-top: 0; margin-bottom: 0; }

    .auth-brand-img      { height: 48px; }
    .auth-brand-img-wrap { padding: 6px 14px; }

    .auth-journey { display: none; }
    .auth-edu-icon-3, .auth-edu-icon-4,
    .auth-edu-icon-5, .auth-edu-icon-6,
    .auth-edu-icon-7 { display: none; }
    .auth-edu-icon-1 { width: 34px; height: 34px; opacity: .06; }
    .auth-edu-icon-2 { width: 38px; height: 38px; opacity: .06; }
}

/* Centred form on wider tablet portrait */
@media (min-width: 480px) and (max-width: 768px) {
    .auth-right-inner { max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* Mobile (≤479px) */
@media (max-width: 479px) {
    .auth-left  { padding: 16px 16px 18px; }
    .auth-right { padding: 18px 14px; }

    .auth-brand-text span { display: none; }
    .auth-badge-pill      { display: none; }
    .auth-brand-img      { height: 38px; }
    .auth-brand-img-wrap { padding: 5px 12px; }
    .auth-edu-icons      { display: none; }

    .auth-form-header h2 { font-size: 19px; }
    .auth-form-header p  { font-size: 13px; }

    .btn-uaepass, .btn-azure        { height: 48px; font-size: 14px; }
    .auth-input-wrap .form-control  { height: 44px; }
    .auth-right .btn.btn-primary    { min-height: 44px; font-size: 14px !important; }
    .auth-user-tab                  { font-size: 12px; padding: 8px 4px; }
    .auth-or-divider                { margin: 11px 0; }

    .auth-right-footer {
        flex-direction: column; align-items: center;
        text-align: center; gap: 8px;
    }
    .auth-footer-links { justify-content: center; }
}

/* Very small (≤360px) */
@media (max-width: 360px) {
    .auth-left  { padding: 12px; }
    .auth-right { padding: 14px 10px; }
    .auth-form-header h2   { font-size: 18px; }
    .auth-brand-emblem     { width: 36px; height: 36px; }
    .auth-brand-emblem svg { width: 19px; height: 19px; }
    .auth-brand-text strong { font-size: 13px; }
    .auth-brand-img      { height: 32px; }
    .auth-brand-img-wrap { padding: 4px 10px; }
}

/* Print */
@media print {
    .auth-left,
    .auth-right-canvas,
    .auth-right::before,
    .auth-right::after { display: none !important; }
    .auth-right  { padding: 0; }
    .auth-right-inner { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   UAE PASS MANUAL LINKING
   Two-step page: a confirmation dialog (step 1) reveals the
   credentials form (step 2) on the same screen.
═══════════════════════════════════════════════════════════════ */

/* Step 2 fades in when the dialog is answered, so the reveal is not abrupt. */
.auth-link-step[hidden] { display: none !important; }
.auth-link-step {
    animation: authLinkStepIn .32s var(--auth-ease) both;
}
@keyframes authLinkStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Section heading inside the form flow — heavier than .auth-sso-heading, which is a
   centred muted caption and reads as a footnote when used as a heading. */
.auth-step-heading {
    font-size: 13.5px; font-weight: 600;
    color: var(--auth-text-primary);
    margin: 0 0 12px;
    padding-inline-start: 11px;
    border-inline-start: 3px solid var(--auth-gold);
    line-height: 1.45;
}

/* Brand the confirmation dialog: SweetAlert ships Bootstrap-blue buttons that clash
   with the gold auth palette, and its default button order puts the dismissive
   action first. */
.swal2-popup .swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, var(--auth-gold) 0%, #c9993f 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
    box-shadow: 0 3px 14px rgba(172,132,64,.28) !important;
}
.swal2-popup .swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(172,132,64,.36) !important;
}
.swal2-popup .swal2-styled.swal2-cancel {
    background: #ffffff !important;
    color: var(--auth-text-primary) !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 10px !important;
    font-weight: 600;
}
.swal2-popup .swal2-styled.swal2-cancel:hover {
    background: var(--auth-bg-field) !important;
    border-color: var(--auth-gold-light) !important;
}
.swal2-popup .swal2-title { font-size: 19px; }
.swal2-popup .swal2-html-container { font-size: 13.5px; line-height: 1.6; }

/* Both dialog buttons carry a full sentence, so let them wrap onto their own rows
   on narrow screens instead of overflowing the popup. */
@media (max-width: 480px) {
    .swal2-popup .swal2-actions { flex-direction: column-reverse; width: 100%; gap: 8px; }
    .swal2-popup .swal2-actions .swal2-styled { width: 100%; margin: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   STUDENT SIGN-IN METHOD SWITCH
   UAE PASS is presented alone; the email/password form is revealed
   only when the student asks for another way.
═══════════════════════════════════════════════════════════════ */

.auth-method[hidden] { display: none !important; }
.auth-method { animation: authLinkStepIn .28s var(--auth-ease) both; }

/* Tertiary action — deliberately lighter than .btn-uaepass and .btn-primary so the
   national digital identity stays the obvious choice. */
.auth-alt-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; height: 46px;
    margin-top: 13px;
    background: transparent;
    color: var(--auth-text-muted);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-r);
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    letter-spacing: .1px; cursor: pointer;
    transition: background var(--auth-ease), border-color var(--auth-ease), color var(--auth-ease);
}
.auth-alt-btn:hover {
    background: var(--auth-bg-field);
    border-color: var(--auth-gold-light);
    color: var(--auth-gold-dark);
}
.auth-alt-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(172,132,64,.28);
    border-color: var(--auth-gold-light);
}
.auth-alt-btn svg {
    width: 15px; height: 15px; flex-shrink: 0;
    stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-alt-btn img { flex-shrink: 0; opacity: .85; }

@media (max-width: 480px) {
    .auth-alt-btn { height: 44px; font-size: 13px; }
}
