/* =============================================================================
   FUTBOLCU — AUTH & CONTRACT STYLES (auth.css)
   ========================================================================== */

.fb-auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #2C5C44;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 46px, rgba(0,0,0,.045) 46px 92px);
}

.fb-auth-topbar {
    background: #1B3A2B;
    border-bottom: 4px solid #12291E;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fb-auth-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 40px 20px 76px 20px;
    box-sizing: border-box;
    position: relative;
}

.fb-auth-side-img {
    flex: 0 1 230px;
    max-width: 230px;
    height: auto;
    align-self: flex-end;
    display: block;
    filter: drop-shadow(0 14px 28px rgba(12,31,22,.55));
    user-select: none;
    pointer-events: none;
}

/* =============================================================================
   SÖZLEŞME DÖKÜMANI & DOSYA KUTUSU
   ========================================================================== */
.fb-contract-box {
    width: 860px;
    max-width: 100%;
    min-height: 490px;
    background-color: #FAF6EB;
    background-image: 
        linear-gradient(rgba(18, 41, 30, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 41, 30, 0.025) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 4px solid #12291E;
    box-shadow: 12px 12px 0 rgba(12,31,22,.5);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Sözleşme Üst Şeridi */
.fb-contract-header-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #1B3A2B;
    border-bottom: 2.5px solid #12291E;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 15;
    font-family: Anton, sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    color: #F2B134;
    text-transform: uppercase;
}

/* Form Panelleri (Sözleşme Sayfaları) */
.fb-contract-page {
    padding: 44px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

.fb-contract-page form {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fb-contract-stamp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #B3401C;
    background: #FFE8DF;
    border: 1.5px dashed #B3401C;
    padding: 2px 7px;
    width: fit-content;
    text-transform: uppercase;
}

.fb-contract-clause {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #5C6E61;
    background: rgba(230, 222, 203, .35);
    border-left: 3px solid #1B3A2B;
    padding: 6px 10px;
    margin: 0;
}

.fb-contract-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-contract-input-group label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #6C7C6F;
    text-transform: uppercase;
}

.fb-contract-input-group input {
    border: 2.5px solid #12291E;
    background: #FFFDF7;
    padding: 9px 12px;
    font-family: Archivo, sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #16281F;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.fb-contract-input-group input:focus {
    border-color: #12291E;
    box-shadow: inset 0 0 0 3px #F2B134;
}

.fb-contract-submit-btn {
    cursor: pointer;
    border: 3px solid #12291E;
    background: #E8552B;
    color: #FFF8E7;
    padding: 12px;
    font-family: Anton, sans-serif;
    font-size: 15.5px;
    letter-spacing: .08em;
    box-shadow: 4px 4px 0 rgba(12,31,22,.4);
    transition: transform .12s ease, box-shadow .12s ease;
    width: 100%;
    text-transform: uppercase;
}

.fb-contract-submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(12,31,22,.4);
}

/* =============================================================================
   KAYAN RESMİ DOSYA KAPAĞI (100% OPAK VE DOLU SLIDING COVER)
   ========================================================================== */
.fb-contract-door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    left: 0;
    background-color: #153324 !important;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 28px, rgba(0,0,0,.1) 28px 56px), linear-gradient(145deg, #1D4430 0%, #0F2318 100%) !important;
    opacity: 1 !important;
    border-left: 4px solid #12291E;
    border-right: 4px solid #12291E;
    box-shadow: inset 0 0 45px rgba(0,0,0,.65), 0 0 30px rgba(0,0,0,.5);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 36px 26px;
    box-sizing: border-box;
    color: #F5F0E1;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Giriş modunda kapı sağ taraftadır */
.fb-contract-box.mode-login .fb-contract-door {
    transform: translateX(100%);
}

/* Kayıt modunda kapı sol taraftadır */
.fb-contract-box.mode-register .fb-contract-door {
    transform: translateX(0%);
}

/* Kapı içi içerik katmanları */
.fb-door-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fb-contract-box.mode-login .fb-door-register-msg {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}
.fb-contract-box.mode-login .fb-door-login-msg {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.fb-contract-box.mode-register .fb-door-register-msg {
    display: none;
    opacity: 0;
    transform: translateX(-20px);
}
.fb-contract-box.mode-register .fb-door-login-msg {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.fb-door-wax-seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3.5px solid #12291E;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(0,0,0,.45);
}

.fb-door-btn {
    cursor: pointer;
    border: 3px solid #12291E;
    padding: 12px 24px;
    font-family: Anton, sans-serif;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 rgba(12,31,22,.45);
    transition: transform .12s ease, box-shadow .12s ease;
}
.fb-door-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(12,31,22,.45);
}

/* Mühür Damga Grafiği */
.fb-contract-wax-stamp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 2px solid #E4DDC8;
}
.fb-red-stamp {
    display: inline-block;
    color: #B3401C;
    border: 2px solid #B3401C;
    padding: 2px 8px;
    font-family: Anton, sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    border-radius: 3px;
    opacity: 0.88;
}

/* Tek Panelli Varyant (Şifremi Unuttum / Şifre Sıfırlama) */
.fb-contract-box.fb-contract-box-single {
    width: 460px;
    min-height: auto;
    grid-template-columns: 1fr;
}
.fb-contract-box.fb-contract-box-single .fb-contract-page {
    padding: 48px 32px 30px;
}

/* Mobil Uyumluluk */
@media (max-width: 860px) {
    .fb-auth-side-img {
        display: none;
    }
    .fb-contract-box {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .fb-contract-door {
        display: none !important;
    }
    .fb-auth-mobile-switch {
        display: flex !important;
    }
    .fb-contract-box.mode-login #registerPanel {
        display: none !important;
    }
    .fb-contract-box.mode-register #loginPanel {
        display: none !important;
    }
}
.fb-auth-mobile-switch {
    display: none;
    border-bottom: 3.5px solid #12291E;
    margin-top: 28px;
}
.fb-auth-mobile-tab {
    flex: 1;
    padding: 14px 10px;
    font-family: Anton, sans-serif;
    font-size: 16px;
    letter-spacing: .08em;
    text-align: center;
    cursor: pointer;
    border: none;
    background: #E5DFCE;
    color: #16281F;
}
.fb-auth-mobile-tab.is-active {
    background: #E8552B;
    color: #FFF8E7;
}

/* =============================================================================
   OYUN YÜKLENME EKRANI OVERLAY (RETRO SAHA & ŞUT ANİMASYONU)
   ========================================================================== */
.fb-game-loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background-color: #123024;
    background-image: 
        radial-gradient(1000px 560px at 50% 40%, rgba(79,148,51,.24), transparent 72%), 
        repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 46px, rgba(0,0,0,.05) 46px 92px);
    z-index: 999999;
    display: none;
    place-items: center;
    padding: 40px 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(4px);
}
.fb-game-loading-overlay.is-active {
    display: grid;
    opacity: 1;
}

.fb-ld-container {
    position: relative;
    width: 100%;
    max-width: 660px;
    display: grid;
    justify-items: center;
    gap: 28px;
    z-index: 2;
}

.fb-ld-logo {
    height: 44px;
    width: auto;
    display: block;
    opacity: .92;
    filter: drop-shadow(0 4px 10px rgba(6,20,13,.5));
}

.fb-ld-arena {
    position: relative;
    width: 100%;
    height: 210px;
}

.fb-ld-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 210px;
    display: block;
}

.fb-ld-svg-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 210px;
    display: block;
    pointer-events: none;
}

.fb-ld-trail {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(242,177,52,.5));
    display: block;
    transform: translateY(50%);
    pointer-events: none;
}

.fb-ld-ball-wrap {
    position: absolute;
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-bottom: -23px;
    display: block;
    transition: left .12s linear, bottom .12s linear;
    pointer-events: none;
}

.fb-ld-ball-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #12291E;
    background: radial-gradient(circle at 32% 26%, #FFFFFF, #F1ECDE 46%, #C6C0AC);
    display: block;
    box-shadow: inset -6px -8px 12px rgba(12,31,22,.26), 0 6px 14px rgba(6,20,13,.4);
    overflow: hidden;
}

.fb-ld-p5 {
    position: absolute;
    background: #12291E;
    clip-path: polygon(50% 0%, 97% 36%, 79% 92%, 21% 92%, 3% 36%);
    display: block;
}
.fb-ld-p-center   { left: 50%; top: 50%; width: 17px; height: 16px; margin: -8px 0 0 -8.5px; }
.fb-ld-p-topleft  { left: -3px; top: 2px; width: 13px; height: 12px; }
.fb-ld-p-topright { right: -3px; top: 2px; width: 13px; height: 12px; }
.fb-ld-p-botleft  { left: 2px; bottom: -2px; width: 12px; height: 12px; }
.fb-ld-p-botright { right: 2px; bottom: -2px; width: 12px; height: 12px; }
.fb-ld-p-top      { left: 50%; top: -5px; width: 12px; height: 11px; margin-left: -6px; }

.fb-ld-shadow {
    position: absolute;
    bottom: 22px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(6,20,13,.5), transparent 72%);
    display: block;
    transition: all .12s linear;
    pointer-events: none;
}

.fb-ld-goal-banner {
    display: none;
    position: absolute;
    left: 9%;
    top: 24px;
    transform: rotate(-4deg);
    border: 3px solid #12291E;
    background: #F2B134;
    padding: 7px 20px;
    font-family: Anton, sans-serif;
    font-size: 22px;
    letter-spacing: .14em;
    color: #16281F;
    box-shadow: 5px 5px 0 rgba(6,20,13,.4);
    white-space: nowrap;
}

.fb-ld-status-box {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.fb-ld-phase-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-ld-phase-text {
    font-family: Anton, sans-serif;
    font-size: 26px;
    letter-spacing: .04em;
    color: #F2B134;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(12,31,22,.4);
}

.fb-ld-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding-top: 5px;
}

.fb-ld-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F2B134;
    display: block;
    animation: ldDot 1.2s ease-in-out infinite;
}

.fb-ld-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-ld-step-text {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .16em;
    color: #7FB093;
    text-transform: uppercase;
}

.fb-ld-step-sep {
    width: 5px;
    height: 5px;
    background: rgba(245,240,225,.25);
    display: block;
}

.fb-ld-pct-text {
    font-family: Anton, sans-serif;
    font-size: 15px;
    color: #EFF6EA;
}

.fb-ld-tip-card {
    width: 100%;
    max-width: 440px;
    border: 3px solid #12291E;
    background: rgba(6,22,15,.62);
    box-shadow: 6px 6px 0 rgba(6,20,13,.35);
    padding: 16px 20px 18px;
    display: grid;
    gap: 10px;
    justify-items: center;
    box-sizing: border-box;
}

.fb-ld-tip-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-ld-tip-icon {
    width: 18px;
    height: 18px;
    background: #F2B134;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 11px;
    line-height: 1;
    color: #16281F;
}

.fb-ld-tip-badge-text {
    font-family: Anton, sans-serif;
    font-size: 13px;
    letter-spacing: .1em;
    color: #F2B134;
}

.fb-ld-tip-content {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: #DCE8DB;
    text-align: center;
    text-wrap: pretty;
}

.fb-ld-bottom-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background-image: repeating-linear-gradient(90deg, #4F9433 0 26px, #F2B134 26px 52px, #E8552B 52px 78px);
    display: block;
    opacity: .55;
}

@keyframes ldSpin {
    to { transform: rotate(360deg); }
}
@keyframes ldFade {
    from { opacity: 0; transform: translateY(8px) rotate(-4deg); }
    to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}
@keyframes ldDot {
    0%, 60%, 100% { opacity: .25; }
    30% { opacity: 1; }
}
@keyframes ldPulse {
    0%, 100% { opacity: .35; }
    50% { opacity: .8; }
}

.ld-spin { animation: ldSpin .9s linear infinite; }
.ld-fade { animation: ldFade .5s ease both; }
.ld-pulse { animation: ldPulse 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .ld-spin, .ld-fade, .ld-pulse { animation: none !important; }
}


