/* =====================================================================
   TurkChess — Auth pages theme (Login, Register, etc.)
   Applied when SiteUrl = https://turkchess.net
   ===================================================================== */

:root {
    --tc-bg: #191c24;
    --tc-surface: #20232e;
    --tc-surface2: #272b38;
    --tc-border: rgba(255,255,255,0.09);
    --tc-red: #c0392b;
    --tc-red-hover: #a93226;
    --tc-text: #e2ddd6;
    --tc-text-muted: #8a8478;
    --tc-text-dim: #555048;
    --tc-white: #f5f0ea;
}

/* ===== Body ===== */
body.turkchess-auth {
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Navbar ===== */
.tc-auth-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(25,28,36,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tc-auth-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.tc-auth-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--tc-red);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}

.tc-auth-logo-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.tc-auth-logo-name span {
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

.tc-auth-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 1.15rem;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-auth-btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.12);
}

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

.tc-auth-btn-red {
    background: var(--tc-red);
    color: #fff;
}

.tc-auth-btn-red:hover {
    background: var(--tc-red-hover);
    color: #fff;
}

/* ===== Language buttons in navbar ===== */
.tc-lang-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    padding: 3px 10px;
    font-size: 0.72rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-lang-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.tc-lang-btn.active {
    background: var(--tc-red);
    border-color: var(--tc-red);
    color: #fff;
}

/* ===== Hero background ===== */
.tc-auth-hero {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.tc-auth-hero-map {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-map-svg {
    width: 110%;
    height: auto;
    max-height: 90vh;
    opacity: 0.7;
    pointer-events: none;
}

.tc-auth-hero svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tc-auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 8, 0.5);
}

.tc-auth-hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 30%,
        rgba(0,0,0,0.4) 100%
    );
    pointer-events: none;
}

/* ===== Main content area ===== */
.tc-auth-main {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 80px 0 2rem;
}

/* Center auth pages (Login, Register, etc.) within the main area */
.tc-auth-main .auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
}

/* Contact page centering */
.tc-auth-main .contact-page {
    padding-top: 1rem;
}

/* ===== Override auth-page ===== */
body.turkchess-auth .auth-page {
    background: none;
    padding: 0 1rem;
    width: 100%;
}

/* Widen the bootstrap column to give the card more room */
body.turkchess-auth .auth-page .col-md-5,
body.turkchess-auth .auth-page .col-md-6,
body.turkchess-auth .auth-page .col-lg-4,
body.turkchess-auth .auth-page .col-lg-5 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 460px;
}

/* ===== Override auth-card ===== */
body.turkchess-auth .auth-card {
    background: rgba(32, 35, 46, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
    padding: 2.2rem 2rem;
    color: var(--tc-text);
    width: 100%;
}

/* ===== Auth logo icon ===== */
body.turkchess-auth .auth-logo {
    background: rgba(192, 57, 43, 0.15);
    color: #e87060;
}

/* ===== Auth title & subtitle ===== */
body.turkchess-auth .auth-title {
    color: var(--tc-white);
    font-family: 'Cinzel', serif;
}

body.turkchess-auth .auth-subtitle {
    color: var(--tc-text-muted);
}

/* ===== Form inputs ===== */
body.turkchess-auth .form-control,
body.turkchess-auth .auth-floating .form-control,
body.turkchess-auth .auth-floating .form-floating > .form-control,
body.turkchess-auth .auth-captcha-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: var(--tc-text) !important;
    border-radius: 8px;
}

body.turkchess-auth .form-control:focus,
body.turkchess-auth .auth-floating .form-control:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--tc-red) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2) !important;
    color: var(--tc-white) !important;
}

body.turkchess-auth .form-control::placeholder {
    color: var(--tc-text-dim) !important;
}

body.turkchess-auth .auth-floating label,
body.turkchess-auth .form-floating > label {
    color: var(--tc-text-muted) !important;
}

body.turkchess-auth .auth-floating .form-control:focus ~ label,
body.turkchess-auth .auth-floating .form-control:not(:placeholder-shown) ~ label,
body.turkchess-auth .form-floating > .form-control:focus ~ label,
body.turkchess-auth .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--tc-text-muted) !important;
}

body.turkchess-auth .auth-floating .form-control:focus ~ label::after,
body.turkchess-auth .auth-floating .form-control:not(:placeholder-shown) ~ label::after,
body.turkchess-auth .form-floating > .form-control:focus ~ label::after,
body.turkchess-auth .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
    background: transparent !important;
}

body.turkchess-auth .auth-input-icon {
    color: var(--tc-text-muted);
}

/* Form label */
body.turkchess-auth .form-label {
    color: var(--tc-text-muted);
}

/* ===== Eye toggle ===== */
body.turkchess-auth .auth-eye-toggle {
    color: var(--tc-text-muted);
}

body.turkchess-auth .auth-eye-toggle:hover {
    color: var(--tc-white);
}

/* ===== Checkbox ===== */
body.turkchess-auth .auth-check {
    border-color: rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
}

body.turkchess-auth .auth-check:checked {
    background-color: var(--tc-red);
    border-color: var(--tc-red);
}

body.turkchess-auth .auth-check-label {
    color: var(--tc-text-muted);
}

/* ===== Primary button (landing-btn-gold override) ===== */
body.turkchess-auth .landing-btn-gold,
body.turkchess-auth .btn.landing-btn-gold {
    background: var(--tc-red) !important;
    border-color: var(--tc-red) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

body.turkchess-auth .landing-btn-gold:hover,
body.turkchess-auth .btn.landing-btn-gold:hover {
    background: var(--tc-red-hover) !important;
    border-color: var(--tc-red-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
}

/* ===== Auth link ===== */
body.turkchess-auth .auth-link {
    color: var(--tc-text-muted);
}

body.turkchess-auth .auth-link a {
    color: #e87060;
}

body.turkchess-auth .auth-link a:hover {
    color: #f09080;
}

/* ===== Alerts ===== */
body.turkchess-auth .alert-danger {
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.3);
    color: #f09080;
}

body.turkchess-auth .alert-success {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
    color: #4ade80;
}

body.turkchess-auth .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

body.turkchess-auth .alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

body.turkchess-auth .alert-info .alert-link {
    color: #93bbfd;
}

/* ===== Status icons (success/error pages) ===== */
body.turkchess-auth .auth-status-success {
    background: rgba(39, 174, 96, 0.12);
    color: #4ade80;
}

body.turkchess-auth .auth-status-danger {
    background: rgba(192, 57, 43, 0.12);
    color: #e87060;
}

/* ===== Email highlight ===== */
body.turkchess-auth .auth-email-highlight {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--tc-white);
}

/* ===== Error box ===== */
body.turkchess-auth .auth-error-box {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: #f09080;
}

/* ===== Captcha ===== */
body.turkchess-auth .auth-captcha-label {
    color: var(--tc-text-muted);
}

body.turkchess-auth .captcha-question {
    color: var(--tc-white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* ===== Validation messages ===== */
body.turkchess-auth .text-danger {
    color: #e87060 !important;
}

body.turkchess-auth .field-validation-error {
    color: #e87060 !important;
}

/* ===== Contact Page ===== */
body.turkchess-auth .contact-page {
    background: none;
    color: var(--tc-text);
    min-height: auto;
    padding: 0;
    width: 100%;
}

body.turkchess-auth .contact-subtitle {
    color: var(--tc-text-muted);
}

body.turkchess-auth .landing-section-title {
    color: var(--tc-white);
    font-family: 'Cinzel', serif;
}

body.turkchess-auth .landing-card-icon {
    background: rgba(192, 57, 43, 0.15);
    color: #e87060;
}

body.turkchess-auth .contact-form-card {
    background: rgba(32, 35, 46, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

body.turkchess-auth .contact-label {
    color: var(--tc-text-muted);
}

body.turkchess-auth .contact-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: var(--tc-text) !important;
}

body.turkchess-auth .contact-input:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--tc-red) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2) !important;
    color: var(--tc-white) !important;
}

body.turkchess-auth .contact-input::placeholder {
    color: var(--tc-text-dim) !important;
}

body.turkchess-auth .contact-input option {
    background: var(--tc-surface);
    color: var(--tc-text);
}

body.turkchess-auth .form-select.contact-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a8478' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

body.turkchess-auth .captcha-question {
    background: rgba(192, 57, 43, 0.12) !important;
    border: 1px solid rgba(192, 57, 43, 0.25) !important;
    color: #e87060 !important;
}

body.turkchess-auth .text-muted {
    color: var(--tc-text-dim) !important;
}

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

/* ===== Landing page inside TurkChess layout ===== */
body.turkchess-auth .landing-wrapper,
body.turkchess-auth .landing-hero,
body.turkchess-auth .landing-section,
body.turkchess-auth .landing-section-alt,
body.turkchess-auth .landing-section-dark,
body.turkchess-auth .landing-cta {
    background: transparent;
}

/* Mobile landing overrides */
body.turkchess-auth.mobile-public-body .mp-hero {
    background: transparent;
    padding-top: 1rem;
}

body.turkchess-auth.mobile-public-body .mp-bottom-cta {
    z-index: 10;
}

/* ===== Footer ===== */
.tc-auth-footer {
    position: relative;
    z-index: 1;
    background: rgba(32, 35, 46, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    padding: 1rem 2rem;
}

.tc-auth-footer p {
    color: var(--tc-text-dim);
    font-size: 0.78rem;
    margin: 0;
}

/* ===== Responsive — Tablet ===== */
@@media (max-width: 768px) {
    .tc-auth-navbar {
        padding: 0 1rem;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .tc-auth-nav-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .tc-lang-btn {
        padding: 2px 7px;
        font-size: 0.68rem;
    }

    .tc-auth-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.78rem;
    }

    .tc-auth-main {
        padding: 70px 0 1.5rem;
    }

    .tc-auth-main .auth-page {
        min-height: calc(100vh - 140px);
    }

    body.turkchess-auth .auth-page .col-md-5,
    body.turkchess-auth .auth-page .col-md-6,
    body.turkchess-auth .auth-page .col-lg-4,
    body.turkchess-auth .auth-page .col-lg-5 {
        max-width: 420px;
    }

    body.turkchess-auth .auth-card {
        padding: 1.75rem 1.5rem;
    }
}

/* ===== Responsive — Mobile ===== */
@@media (max-width: 576px) {
    .tc-auth-navbar {
        padding: 0.4rem 0.6rem;
        min-height: 50px;
    }

    .tc-auth-logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .tc-auth-logo-name {
        display: none;
    }

    .tc-auth-nav-right {
        gap: 0.25rem;
    }

    .tc-lang-btn {
        padding: 2px 6px;
        font-size: 0.65rem;
        border-radius: 4px;
    }

    .tc-auth-btn {
        padding: 0.3rem 0.65rem;
        font-size: 0.73rem;
        border-radius: 6px;
    }

    .tc-auth-btn i {
        font-size: 0.8rem;
    }

    .tc-auth-main {
        padding: 58px 0 1rem;
    }

    .tc-auth-main .auth-page {
        min-height: calc(100vh - 120px);
        padding: 0 0.5rem;
    }

    body.turkchess-auth .auth-page .col-md-5,
    body.turkchess-auth .auth-page .col-md-6,
    body.turkchess-auth .auth-page .col-lg-4,
    body.turkchess-auth .auth-page .col-lg-5 {
        max-width: 100%;
        width: 100%;
    }

    body.turkchess-auth .auth-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    body.turkchess-auth .auth-logo {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    body.turkchess-auth .auth-title {
        font-size: 1.2rem;
    }

    body.turkchess-auth .auth-subtitle {
        font-size: 0.85rem;
    }

    body.turkchess-auth .auth-header {
        margin-bottom: 1.25rem;
    }

    body.turkchess-auth .auth-floating {
        margin-bottom: 0.6rem;
    }

    body.turkchess-auth .form-control,
    body.turkchess-auth .auth-floating .form-control,
    body.turkchess-auth .auth-floating .form-floating > .form-control {
        font-size: 0.9rem !important;
    }

    body.turkchess-auth .landing-btn-gold,
    body.turkchess-auth .btn.landing-btn-gold {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    body.turkchess-auth .auth-link {
        font-size: 0.85rem;
    }

    /* Contact page mobile */
    body.turkchess-auth .contact-form-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    body.turkchess-auth .landing-section-title {
        font-size: 1.2rem;
    }

    .tc-auth-footer {
        padding: 0.75rem 1rem;
    }

    .tc-auth-footer p {
        font-size: 0.72rem;
    }
}

/* ===== Responsive — Very small screens ===== */
@@media (max-width: 380px) {
    .tc-auth-btn span,
    .tc-auth-btn .mic-status-label {
        display: none;
    }

    .tc-auth-btn {
        padding: 0.3rem 0.5rem;
    }

    .tc-lang-btn {
        padding: 2px 5px;
        font-size: 0.6rem;
    }
}

/* =====================================================================
   TurkChess — Member area (post-login) background overrides
   Applied via body.turkchess-member
   ===================================================================== */
body.turkchess-member {
    background: #191c24;
}

body.turkchess-member .member-wrapper {
    background: transparent;
    position: relative;
    z-index: 1;
}

body.turkchess-member .mobile-navbar,
body.turkchess-member .member-navbar {
    background: rgba(25,28,36,0.85) !important;
    backdrop-filter: blur(20px);
}

body.turkchess-member .member-sidebar {
    background: rgba(25,28,36,0.9) !important;
    backdrop-filter: blur(16px);
}

body.turkchess-member .mobile-main {
    position: relative;
    z-index: 1;
}

body.turkchess-member .mobile-bottomnav {
    background: rgba(25,28,36,0.85) !important;
    backdrop-filter: blur(20px);
}
