/* ============================================================
   Family Feud — brand styles (auth pages + site chrome)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

:root {
    --ff-navy: #07123a;
    --ff-navy-2: #0a1a52;
    --ff-blue: #1a6fc4;
    --ff-blue-dark: #0f4c8a;
    --ff-gold: #f5c842;
    --ff-gold-deep: #d69e2e;
    --ff-ink: #15192b;
    --ff-muted: #6b7280;
    --ff-card: #ffffff;
    --ff-line: #e6e8f0;
    --ff-font: 'DM Sans', system-ui, Arial, sans-serif;
    --ff-display: 'Bebas Neue', 'DM Sans', sans-serif;
    --ff-ui: 'Oswald', 'DM Sans', sans-serif;
}

[dir="rtl"] {
    --ff-font: 'Cairo', 'DM Sans', system-ui, Arial, sans-serif;
    --ff-ui: 'Cairo', 'Oswald', sans-serif;
}

/* ---------- AUTH PAGES (login / register / forgot / reset) ---------- */
body.ff-auth {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    font-family: var(--ff-font);
    color: var(--ff-ink);
    background:
        radial-gradient(ellipse 80% 60% at 12% 0%, rgba(245, 200, 66, .18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 100%, rgba(26, 111, 196, .35) 0%, transparent 55%),
        linear-gradient(160deg, var(--ff-navy) 0%, var(--ff-navy-2) 55%, #122a73 100%);
}

.ff-auth-card {
    position: relative;
    width: min(440px, 100%);
    background: var(--ff-card);
    border-radius: 20px;
    padding: 34px 32px 30px;
    box-shadow: 0 30px 80px rgba(4, 10, 35, .55), 0 2px 0 rgba(255, 255, 255, .4) inset;
    border: 1px solid rgba(255, 255, 255, .08);
}

.ff-auth-langbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.ff-lang-select {
    appearance: none;
    border: 1px solid var(--ff-line);
    border-radius: 999px;
    background: #f7f8fb;
    color: #334;
    font: 600 12px/1 var(--ff-font);
    padding: 7px 30px 7px 14px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

[dir="rtl"] .ff-lang-select {
    padding: 7px 14px 7px 30px;
    background-position: left 12px center;
}

.ff-auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.ff-auth-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(20, 30, 80, .25));
}

.ff-auth-title {
    margin: 0;
    font-family: var(--ff-display);
    font-size: 2.4rem;
    letter-spacing: 3px;
    line-height: 1;
    color: var(--ff-blue-dark);
}

[dir="rtl"] .ff-auth-title {
    letter-spacing: 0;
    font-weight: 700;
}

.ff-auth-sub {
    margin: 8px 0 0;
    color: var(--ff-muted);
    font-size: 14px;
}

/* form fields */
.ff-field {
    margin-bottom: 14px;
}

.ff-field label {
    display: block;
    margin-bottom: 6px;
    font: 600 11px/1 var(--ff-font);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a90a2;
}

[dir="rtl"] .ff-field label {
    letter-spacing: 0;
}

.ff-field input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--ff-line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    font-family: var(--ff-font);
    color: var(--ff-ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.ff-field input:focus {
    outline: none;
    border-color: var(--ff-blue);
    box-shadow: 0 0 0 4px rgba(26, 111, 196, .12);
}

.ff-field .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #d4452e;
}

.ff-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 16px;
    font-size: 14px;
    color: #444;
}

.ff-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--ff-blue);
}

/* buttons */
.ff-btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--ff-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2a1c00;
    background: linear-gradient(180deg, var(--ff-gold) 0%, var(--ff-gold-deep) 100%);
    box-shadow: 0 12px 24px rgba(214, 158, 46, .32);
    transition: transform .1s, box-shadow .15s, filter .15s;
}

[dir="rtl"] .ff-btn {
    letter-spacing: 0;
}

.ff-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(214, 158, 46, .42);
}

.ff-btn:active {
    transform: translateY(1px);
}

.ff-auth-alt {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--ff-muted);
}

.ff-auth-alt a {
    color: var(--ff-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.ff-auth-alt a:hover {
    text-decoration: underline;
}

.ff-auth-links {
    margin-top: 14px;
    text-align: center;
}

.ff-auth-links a {
    color: var(--ff-blue);
    font-size: 13px;
    text-decoration: none;
}

.ff-auth-links a:hover {
    text-decoration: underline;
}

.ff-validation-summary.validation-summary-valid {
    display: none;
}

.ff-validation-summary {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(212, 69, 46, .08);
    border: 1px solid rgba(212, 69, 46, .25);
    color: #b3341f;
    font-size: 13px;
}

.ff-validation-summary ul {
    margin: 0;
    padding-inline-start: 18px;
}

.ff-external {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ff-line);
    text-align: center;
}

.ff-external p {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa0b0;
}

.ff-external .btn {
    margin: 0 4px;
}

/* ---------- SITE CHROME (main layout used by Purchase etc.) ---------- */
.ff-navbar {
    background: linear-gradient(90deg, var(--ff-navy) 0%, var(--ff-blue-dark) 100%) !important;
    box-shadow: 0 2px 14px rgba(7, 18, 58, .25);
}

.ff-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-display);
    letter-spacing: 2px;
    font-size: 1.5rem;
    color: #fff !important;
}

.ff-navbar .navbar-brand img {
    width: 34px;
    height: 34px;
}

.ff-navbar .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-weight: 600;
}

.ff-navbar .nav-link:hover {
    color: var(--ff-gold) !important;
}

.ff-navbar .btn-link {
    color: rgba(255, 255, 255, .85) !important;
    text-decoration: none;
    font-weight: 600;
}

.ff-navbar .ff-lang-select {
    background-color: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}

.ff-navbar .ff-lang-select option {
    color: #15192b;
}

body.ff-site {
    font-family: var(--ff-font);
    color: var(--ff-ink);
    background: #f4f6fb;
    min-height: 100vh;
}
