/* =====================================================================
   chessforarab.com — public pages (landing, Login, Register, Contact…)
   Loaded only by _ChessForArabLayout, after turkchess-auth.css: the page
   frame is the TurChess one, re-dressed in the "Desert Dusk" look
   (Kamal, 2026-10-07, design B). Every rule is scoped to body.cfa-auth,
   so iraqchess.com and turchess.com never see any of it.
   ===================================================================== */

/* ===== Fonts (local copies, Arabic subsets only for Tajawal so Latin
   text falls through to Inter, which carries Turkish letters) ===== */
@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/aref-ruqaa-700-arabic.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/aref-ruqaa-700-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Aref Ruqaa';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/aref-ruqaa-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/tajawal-400-arabic.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/tajawal-500-arabic.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/tajawal-700-arabic.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../lib/fonts/chessforarab/tajawal-800-arabic.woff2) format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ===== Palette: the TurChess variables re-pointed to dusk + amber.
   Set on the body so they win over turkchess-auth.css's :root values
   for everything inside the page. ===== */
body.cfa-auth {
    --tc-bg: #1a0f1c;
    --tc-surface: #24142a;
    --tc-surface2: #2c1a30;
    --tc-border: rgba(255, 243, 227, 0.1);
    --tc-red: #f2a541;          /* amber — the brand accent here */
    --tc-red-hover: #ffb85c;
    --tc-text: #fff3e3;
    --tc-text-muted: #d2b9b0;
    --tc-text-dim: #a48e93;
    --tc-white: #fff8ee;
    --cfa-on-amber: #2a1405;    /* text on amber: about 8.5:1 on #f2a541 */
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: 'Tajawal', 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

body.cfa-auth.mobile-public-body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Background picture: dusk over the dunes ===== */
body.cfa-auth .tc-auth-hero {
    background: #1a0f1c url(../images/chessforarab-dusk.svg) center bottom / cover no-repeat;
}

/* A light veil only — the picture stays visible; cards carry their own
   solid surface for readability. */
body.cfa-auth .tc-auth-hero-overlay {
    background: rgba(26, 15, 28, 0.3);
}

body.cfa-auth .tc-auth-hero-vignette {
    background: radial-gradient(ellipse 85% 80% at 50% 45%, transparent 35%, rgba(12, 6, 14, 0.45) 100%);
}

/* ===== Navbar ===== */
body.cfa-auth .tc-auth-navbar {
    background: rgba(26, 15, 28, 0.78);
    border-bottom: 1px solid rgba(242, 165, 65, 0.18);
}

body.cfa-auth .tc-auth-logo-icon {
    background: var(--tc-red);
    color: var(--cfa-on-amber);
    border-radius: 50%;
}

body.cfa-auth .tc-auth-logo-name {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.3rem;
    color: #fff;
}

body.cfa-auth .tc-auth-logo-name span {
    color: rgba(255, 243, 227, 0.5);
}

/* Phones: keep the whole bar on one line (the rule above outranks the
   TurChess size-downs, so they are repeated here at the same scope) */
@media (max-width:576px) {
    body.cfa-auth .tc-auth-logo-name {
        font-size: 1.05rem;
    }
}

@media (max-width:380px) {
    body.cfa-auth .tc-auth-logo-name {
        font-size: 0.95rem;
    }
}

/* Amber buttons carry dark text (white on amber is 2:1 — unreadable) */
body.cfa-auth .tc-auth-btn-red,
body.cfa-auth .tc-auth-btn-red:hover,
body.cfa-auth .tc-lang-btn.active,
body.cfa-auth .tc-navbar-login-btn,
body.cfa-auth .tc-navbar-login-btn:hover {
    color: var(--cfa-on-amber);
    font-weight: 700;
}

body.cfa-auth .tc-auth-btn-red:focus-visible,
body.cfa-auth .tc-navbar-login-btn:focus-visible,
body.cfa-auth .tc-auth-btn-ghost:focus-visible,
body.cfa-auth .tc-nav-globe:focus-visible,
body.cfa-auth .tc-lang-btn:focus-visible {
    outline: 2px solid #ffcf86;
    outline-offset: 2px;
}

body.cfa-auth .tc-auth-btn-ghost {
    background: rgba(26, 15, 28, 0.35);
    color: #fff3e3;
    border: 1px solid rgba(255, 243, 227, 0.3);
}

body.cfa-auth .tc-auth-btn-ghost:hover {
    background: rgba(255, 243, 227, 0.14);
    color: #fff;
}

/* ===== Cards (auth, contact) ===== */
body.cfa-auth .auth-card,
body.cfa-auth .contact-form-card {
    background: rgba(36, 20, 42, 0.93);
    border: 1px solid rgba(242, 165, 65, 0.2);
}

body.cfa-auth .auth-logo,
body.cfa-auth .landing-card-icon {
    background: rgba(242, 165, 65, 0.16);
    color: #ffcf86;
}

body.cfa-auth .auth-title,
body.cfa-auth .landing-section-title {
    font-family: 'Aref Ruqaa', serif;
}

/* ===== Inputs: amber focus ring ===== */
body.cfa-auth .form-control:focus,
body.cfa-auth .auth-floating .form-control:focus,
body.cfa-auth .contact-input:focus {
    border-color: var(--tc-red) !important;
    box-shadow: 0 0 0 3px rgba(242, 165, 65, 0.25) !important;
}

/* "Remember me" tick: amber box, dark tick (Bootstrap's white tick is 2:1 on amber) */
body.cfa-auth .auth-check:checked {
    background-color: var(--tc-red);
    border-color: var(--tc-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%232a1405' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

body.cfa-auth .contact-input option {
    background: #24142a;
    color: #fff3e3;
}

/* ===== Primary button ===== */
body.cfa-auth .landing-btn-gold,
body.cfa-auth .btn.landing-btn-gold,
body.cfa-auth .landing-btn-gold:hover,
body.cfa-auth .btn.landing-btn-gold:hover {
    color: var(--cfa-on-amber) !important;
    font-weight: 700;
}

body.cfa-auth .landing-btn-gold:hover,
body.cfa-auth .btn.landing-btn-gold:hover {
    box-shadow: 0 4px 16px rgba(242, 165, 65, 0.4);
}

body.cfa-auth .landing-btn-gold:active,
body.cfa-auth .btn.landing-btn-gold:active {
    background: #d98d2c !important;
    border-color: #d98d2c !important;
}

body.cfa-auth .landing-btn-gold:disabled,
body.cfa-auth .btn.landing-btn-gold:disabled {
    background: #8a6a45 !important;
    border-color: #8a6a45 !important;
    color: #2a1405 !important;
    opacity: 0.75;
}

/* ===== Links ===== */
body.cfa-auth .auth-link a {
    color: #ffcf86;
}

body.cfa-auth .auth-link a:hover {
    color: #ffe2b0;
}

/* ===== Errors stay red — amber would not read as a problem ===== */
body.cfa-auth .alert-danger,
body.cfa-auth .auth-error-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
}

body.cfa-auth .auth-status-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

body.cfa-auth .text-danger,
body.cfa-auth .field-validation-error {
    color: #fca5a5 !important;
}

body.cfa-auth .captcha-question {
    background: rgba(242, 165, 65, 0.14) !important;
    border: 1px solid rgba(242, 165, 65, 0.35) !important;
    color: #ffcf86 !important;
}

body.cfa-auth .landing-card p.text-muted,
body.cfa-auth .landing-format-card p,
body.cfa-auth .landing-step .text-muted,
body.cfa-auth .landing-section .text-muted {
    color: #e3cfc5 !important;
}

/* ===== Footer ===== */
body.cfa-auth .tc-auth-footer {
    background: rgba(26, 15, 28, 0.82);
    border-top: 1px solid rgba(242, 165, 65, 0.15);
}

body.cfa-auth .tc-auth-footer p {
    color: #b9a3a9;
}
