/* WinBuyBox giriş / kayıt ekranı.
   Ölçüler 1536x1024 tasarımdan birebir alındı: hero %66,67 - sağ panel %33,33,
   kart 467x722, iç boşluk 40px, alanlar 52px, ana buton 59px. */

/* Bu ekran panelin global css'ini yüklemez; gerekli sıfırlama burada. */
.wbb-auth,
.wbb-auth body {
    margin: 0;
}

.wbb-auth *,
.wbb-auth *::before,
.wbb-auth *::after {
    box-sizing: border-box;
}

.wbb-auth {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    color: #0f172a;
    background: #0f172a;
}

.wbb-auth-wrap {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sol görsel ---------- */
.wbb-auth-hero {
    flex: 0 0 66.67%;
    max-width: 66.67%;
    position: relative;
    overflow: hidden;
    background: #eef1f5;
}

    .wbb-auth-hero img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

/* ---------- Sağ panel (gün batımı arka planı tasarımdan örneklendi) ---------- */
.wbb-auth-side {
    flex: 1 1 33.33%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 45px 61px 0;
    background: url('/images/login/auth-side.webp') center center / 100% 100% no-repeat, #f4c48a;
    overflow-y: auto;
}

/* ---------- Üst şerit ---------- */
.wbb-auth-topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
}

.wbb-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: default;
}

    .wbb-lang svg {
        flex: none;
    }

.wbb-auth-switch {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

    .wbb-auth-switch a {
        color: #ff7401;
        font-weight: 700;
        text-decoration: none;
        margin-left: 6px;
    }

        .wbb-auth-switch a:hover {
            text-decoration: underline;
        }

/* ---------- Kart ---------- */
.wbb-auth-card {
    width: 100%;
    max-width: 467px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(15,23,42,.20);
    padding: 47px 40px 61px;
    margin: 26px 0 0;
}

.wbb-auth-logo {
    display: block;
    height: 58px;
    width: auto;
    margin: 0 auto 32px;
}

.wbb-auth-title {
    margin: 0 0 9px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.4px;
    color: #0f172a;
}

.wbb-auth-sub {
    margin: 0 0 33px;
    font-size: 15px;
    color: #64748b;
}

/* ---------- Form ---------- */
.wbb-auth-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.wbb-field {
    position: relative;
    margin-bottom: 24px;
}

    .wbb-field .wbb-field-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
        display: flex;
    }

    .wbb-field input {
        width: 100%;
        height: 52px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        padding: 0 46px;
        font-size: 15px;
        color: #0f172a;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .wbb-field input::placeholder {
            color: #9aa5b5;
        }

        .wbb-field input:focus {
            border-color: #ff7401;
            box-shadow: 0 0 0 3px rgba(255,116,1,.14);
        }

.wbb-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

    .wbb-eye:hover {
        color: #475569;
    }

.wbb-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 27px;
}

.wbb-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

    .wbb-check input {
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: #ff7401;
        cursor: pointer;
    }

.wbb-link-orange {
    font-size: 14px;
    font-weight: 600;
    color: #ff7401;
    text-decoration: none;
}

    .wbb-link-orange:hover {
        color: #e06600;
        text-decoration: underline;
    }

/* ---------- Butonlar ---------- */
.wbb-btn-primary {
    display: block;
    width: 100%;
    height: 59px;
    border: 0;
    border-radius: 10px;
    background: #ff7401;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

    .wbb-btn-primary:hover {
        background: #ec6a00;
        box-shadow: 0 8px 20px rgba(255,116,1,.28);
    }

.wbb-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 14px;
}

    .wbb-or::before,
    .wbb-or::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e8eaee;
    }

.wbb-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 53px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    .wbb-btn-google:hover {
        background: #f8fafc;
        border-color: #d8dde5;
        color: #1f2937;
        text-decoration: none;
    }

/* ---------- Uyarı kutusu ---------- */
.wbb-auth-alert {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13.5px;
    line-height: 1.45;
}

    .wbb-auth-alert ul {
        margin: 0;
        padding-left: 18px;
    }

/* ---------- Alt bağlantılar ---------- */
.wbb-auth-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: auto;
    font-size: 13.5px;
    color: #334155;
}

    .wbb-auth-footer a {
        color: #334155;
        text-decoration: none;
    }

        .wbb-auth-footer a:hover {
            color: #0f172a;
            text-decoration: underline;
        }

    .wbb-auth-footer span {
        color: #94a3b8;
    }

/* ---------- Tablet: görseli daralt ---------- */
@media (max-width: 1279.98px) {
    .wbb-auth-hero {
        flex-basis: 52%;
        max-width: 52%;
    }

    .wbb-auth-side {
        flex-basis: 48%;
        padding-right: 32px;
    }
}

/* ---------- Mobil: görsel gizlenir, kart ortalanır ---------- */
@media (max-width: 991.98px) {
    .wbb-auth-hero {
        display: none;
    }

    .wbb-auth-side {
        flex: 1 1 100%;
        max-width: 100%;
        align-items: center;
        justify-content: flex-start;
        padding: 22px 16px 26px;
        background-size: 100% 100%;
    }

    .wbb-auth-topbar,
    .wbb-auth-card,
    .wbb-auth-footer {
        width: 100%;
        max-width: 467px;
    }

    .wbb-auth-card {
        margin: 16px auto 20px;
        padding: 30px 22px 32px;
    }

    .wbb-auth-footer {
        justify-content: center;
    }

    .wbb-auth-logo {
        height: 48px;
        margin-bottom: 24px;
    }

    .wbb-auth-title {
        font-size: 25px;
    }

    .wbb-auth-sub {
        margin-bottom: 22px;
    }
}

@media (max-width: 339.98px) {
    .wbb-auth-card {
        padding: 26px 16px 28px;
    }

    .wbb-auth-title {
        font-size: 23px;
    }

    .wbb-auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
