/* Ethrah v1.50. All artwork and fonts are bundled locally. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-Variable.woff') format('woff'); }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/NotoSansArabic-Variable.woff') format('woff'); }

body { font-family: Inter, "Noto Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }

html[data-preset="ethrah"] {
    --accent: #18483D; --accent-rgb: 24,72,61;
    --bg: #F4F7F5; --surface: #FFFFFF; --surface-raised: #FFFFFF;
    --surface-soft: #F8FAF9; --surface-strong: #E8F0EB;
    --text: #1C2C25; --text-soft: #54695F; --text-muted: #64766D;
    --border: #DDE6E0; --border-strong: #BBCDC2;
}
html[data-preset="ethrah"][data-theme="dark"],
html[data-preset="ethrah"][data-resolved-theme="dark"] {
    --accent: #8FC7B6; --accent-rgb: 143,199,182;
    --bg: #101B17; --surface: #172720; --surface-raised: #20332A;
    --surface-soft: #13221B; --surface-strong: #263D31;
    --text: #F2F7F4; --text-soft: #BDCFC4; --text-muted: #9BB3A5;
    --border: #345243; --border-strong: #5D7E6C;
}
html[data-preset="ethrah"][data-resolved-theme="dark"] .button--primary,
html[data-preset="ethrah"][data-theme="dark"] .button--primary {
    background: #18483D; color: #FFFFFF; border-color: #739B8F;
}
:lang(ar), [dir="rtl"] { font-family: 'Noto Sans Arabic', Inter, sans-serif; }
:lang(ar), [dir="rtl"], :lang(ar) *, [dir="rtl"] * { letter-spacing: normal !important; }
:lang(ar) { direction: rtl; }
.ethrah-icon { width: 100%; height: 100%; object-fit: contain; }
.brand__mark:has(.ethrah-icon), .brand-stage__mark:has(.ethrah-icon),
.branding-widget__mark:has(.ethrah-icon), .login-story__mark:has(.ethrah-icon),
.branding-preview-card__mark:has(.ethrah-icon) {
    padding: 4px; background: #FFFFFF; border: 1px solid var(--border);
    box-shadow: none; overflow: hidden;
}
.brand__image, .login-story__logo { box-shadow: none; }
.ethrah-complete-logo { width: 180px; height: auto; margin: 0 auto 24px; }
.installer-complete:has(.ethrah-complete-logo) .installer-complete__visual { display: none; }
.installer-body { background: #F4F7F5; }
html[data-preset="ethrah"] .installer-intro { background: #18483D; }
.auth-body { overflow: auto; background: #F1F5F2; }
.auth-main:has(.ethrah-login) { display: grid; align-items: center; padding: clamp(16px,4vw,56px); min-height: 100svh; }
.ethrah-login { display: grid; grid-template-columns: 1fr 1fr; width: min(1120px,100%); min-height: min(710px,calc(100svh - 80px)); margin: auto; border: 1px solid #D7E1DA; border-radius: 18px; overflow: hidden; background: #FFFFFF; }
.ethrah-login__story { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: clamp(32px,4.5vw,64px); background: #18483D; color: #FFFFFF; }
.ethrah-login__signature { width: min(310px,100%); background: #FFFFFF; border-radius: 3px; }
.ethrah-login__signature img { width: 100%; height: auto; }
.ethrah-login__message h2 { max-width: 420px; margin: 20px 0 24px; font-size: clamp(32px,3.7vw,48px); line-height: 1.13; font-weight: 500; letter-spacing: -.035em; color: #FFFFFF; }
.ethrah-login__message > p:last-child { max-width: 335px; margin: 0; color: #DAE7DF; font-size: 15px; line-height: 1.7; }
.ethrah-login__eyebrow { margin: 0; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; }
.ethrah-login__story .ethrah-login__eyebrow { color: #CEDDD5; }
.ethrah-login__story-footer { display: flex; align-items: center; gap: 16px; }
.ethrah-login__story-footer span { width: 32px; height: 1px; background: #AAC4B6; flex: 0 0 auto; }
.ethrah-login__story-footer p { margin: 0; font-size: 12px; color: #DAE7DF; }
.ethrah-login__panel { display: flex; flex-direction: column; padding: clamp(28px,4.5vw,64px); background: #FFFFFF; }
.ethrah-login__form { width: min(380px,100%); margin: auto; padding-block: 28px; }
.ethrah-login__heading { margin-bottom: 34px; }
.ethrah-login__heading .ethrah-login__eyebrow { color: #567467; }
.ethrah-login__heading h1 { margin: 12px 0; font-size: clamp(28px,3vw,36px); font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.ethrah-login__heading > p:last-child { margin: 0; color: #54695F; font-size: 14px; line-height: 1.65; }
.ethrah-login .field label, .ethrah-login .button { font-weight: 500; }
.ethrah-login .field input { border-radius: 9px; background: #FFFFFF; }
.ethrah-login .button--primary { border-radius: 9px; background: #18483D; color: #FFFFFF; box-shadow: none; }
.ethrah-login .button--primary:hover { background: #103B31; }
.ethrah-login__security { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; color: #64766D; font-size: 11px; }
.ethrah-login__security .icon { width: 13px; height: 13px; }
.ethrah-login__footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #E5EBE7; color: #64766D; font-size: 11px; }
.ethrah-login__mobile-logo { display: none; }
.ethrah-login__custom-logo { max-width: 200px; max-height: 90px; width: auto; height: auto; object-fit: contain; margin-bottom: 24px; }
/* The secondary authentication flows use the same restrained brand treatment. */
.auth-body .login-story { background: #18483D; }
.auth-body .login-story::before, .auth-body .login-story__glow, .auth-body .login-story__orb { display: none; }
@media (max-width: 760px) {
    .auth-main:has(.ethrah-login) { padding: 18px; }
    .ethrah-login { grid-template-columns: 1fr; min-height: calc(100svh - 36px); max-width: 500px; border-radius: 14px; }
    .ethrah-login__story { display: none; }
    .ethrah-login__panel { padding: 26px; }
    .ethrah-login__form { padding-block: 8px 24px; }
    .ethrah-login__mobile-logo { display: block; width: min(260px,100%); margin: 0 auto 30px; }
    .ethrah-login__mobile-logo img { width: 100%; height: auto; }
    .ethrah-login__heading { margin-bottom: 28px; }
}
@media (max-width: 380px) {
    .auth-main:has(.ethrah-login) { padding: 8px; }
    .ethrah-login { min-height: calc(100svh - 16px); }
    .ethrah-login__panel { padding: 20px; }
}

/* UAT Round 1: top navigation control and Ethrah dashboard welcome. */
.sidebar__controls { flex: 0 0 auto; padding: 0 12px 10px; border-block-end: 1px solid var(--border); }
.sidebar__controls .sidebar-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ethrah-dashboard-hero { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,.8fr); align-items: center; gap: 32px; padding: clamp(24px,3.4vw,44px); border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(115deg,var(--surface),var(--accent-soft)); overflow: hidden; }
.ethrah-dashboard-hero__copy { min-width: 0; }
.ethrah-dashboard-hero .eyebrow { color: var(--accent); }
.ethrah-dashboard-hero h2 { margin: 10px 0 12px; font-size: clamp(25px,2.7vw,36px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ethrah-dashboard-hero p { max-width: 570px; margin: 0; color: var(--text-soft); line-height: 1.75; }
.ethrah-dashboard-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 24px; }
.ethrah-dashboard-hero__brand { padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.ethrah-dashboard-hero__brand img { display: block; width: 100%; height: auto; }
[dir="rtl"] .ethrah-dashboard-hero h2 { letter-spacing: 0; }
.partner-courses .course-card footer>div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 1100px) { .ethrah-dashboard-hero { grid-template-columns: minmax(0,1fr); } .ethrah-dashboard-hero__brand { display: none; } }
@media (max-width: 560px) { .ethrah-dashboard-hero { gap: 20px; padding: 24px 20px; border-radius: 16px; } .ethrah-dashboard-hero__actions .button { flex: 1 1 auto; } }
