/* Mitt konto giriş/kayıt + şifre sıfırlama (includes/login-redesign.php). Yalnız body.fb-auth altında; sitenin Ek CSS'indeki
   eski giriş kartı kurallarının (.u-column1.col-1 dolgu/zemin/105px, koyu "Kom ihåg mig") üstüne yazar. */

body.fb-auth {
    --fba-ink: #14161a;
    --fba-muted: #5b6069;
    --fba-line: #e3e6ea;
    --fba-soft: #f5f6f8;
    --fba-link: #0a66c2;
    --fba-band: #0095ff;
    --fba-band-tc: #ffffff;
    --fba-cta: #fbc800;
    --fba-cta-tc: #14161a;
    --fba-font: "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --fba-head: 140px; /* public-styles.css: telefonda sabit başlığın altındaki boşluk */
}

body.fb-auth .rey-siteContent {
    background: var(--fba-soft) !important;
}

body.fb-auth .rey-siteContainer {
    padding-bottom: 0 !important;
}

body.fb-auth .rey-pageContent {
    padding-top: 0 !important;
}

body.fb-auth .rey-pageContent .woocommerce {
    max-width: none !important;
    padding-bottom: 48px;
}

body.fb-auth :is(.fb-auth-band, .fb-auth-card),
body.fb-auth :is(.fb-auth-band, .fb-auth-card) :is(input, button, label, p, span, a, h1, h2, div, li, strong) {
    font-family: var(--fba-font) !important;
}

body.fb-auth [hidden] {
    display: none !important;
}

/* Bant sabit başlığın arkasına uzanır: başlık yüksekliği ne olursa olsun arada boşluk kalmaz. Yanlara taşma clip-path ile kesilir. */
body.fb-auth .fb-auth-band {
    position: relative;
    margin: calc(-1 * var(--fba-head)) 0 0;
    padding: calc(var(--fba-head) + 22px) 8px 84px;
    background: var(--fba-band);
    box-shadow: 0 0 0 100vmax var(--fba-band);
    clip-path: inset(0 -100vmax);
    color: var(--fba-band-tc);
    text-align: center;
}

body.fb-auth .fb-auth-band h1 {
    margin: 0 0 6px;
    color: inherit !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    text-transform: none !important;
}

body.fb-auth .fb-auth-band p {
    max-width: 340px;
    margin: 0 auto;
    color: inherit !important;
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.95;
}

body.fb-auth .fb-auth-band::after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--fba-cta);
}

body.fb-auth .fb-auth-card {
    position: relative;
    max-width: 460px;
    margin: -60px auto 0;
    padding: 8px 20px 26px;
    border-radius: 20px;
    background: #fff;
    color: var(--fba-ink);
    box-shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 8px 24px rgba(20, 22, 26, 0.08);
}

body.fb-auth .fb-auth-card--reset {
    padding-top: 26px;
}

/* Sekmeler */
body.fb-auth .fb-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 22px;
    border-bottom: 1.5px solid var(--fba-line);
}

body.fb-auth .fb-auth-tabs a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: var(--fba-muted) !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

body.fb-auth .fb-auth-tabs a::after {
    display: none !important;
}

body.fb-auth .fb-auth-tabs a[aria-selected="true"] {
    color: var(--fba-ink) !important;
}

body.fb-auth .fb-auth-tabs a[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -1.5px;
    height: 3px;
    border-radius: 2px;
    background: var(--fba-cta);
}

body.fb-auth .fb-auth-tabs a:focus-visible {
    outline: 2px solid var(--fba-band);
    outline-offset: -4px;
    border-radius: 8px;
}

/* Eski iki kolonlu kart düzenini sıfırla (html.fb-app kuralı 16px margin-top veriyor; özgüllükle geçilir) */
html body.fb-auth #customer_login {
    display: block !important;
    margin: 0 !important;
}

html body.fb-auth #customer_login > :is(.u-column1, .u-column2) {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

body.fb-auth #customer_login::before,
body.fb-auth #customer_login::after {
    display: none !important;
}

body.fb-auth .fb-auth-card form {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

/* Alanlar */
body.fb-auth .fb-auth-card .form-row {
    float: none !important;
    width: auto !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

body.fb-auth .fb-auth-card .form-row label:not(.woocommerce-form__label-for-checkbox) {
    position: static !important;
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--fba-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
}

body.fb-auth .fb-auth-card .required {
    color: #c62828 !important;
}

body.fb-auth .fb-auth-card input.input-text {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1.5px solid var(--fba-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--fba-ink) !important;
    font-size: 16px !important; /* iOS: 16px altı odakta yakınlaştırır */
}

body.fb-auth .fb-auth-card input.input-text:focus {
    border-color: var(--fba-band) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fba-band) 18%, transparent) !important;
    outline: 0 !important;
}

body.fb-auth .fb-auth-card .password-input {
    position: relative;
    display: block;
}

body.fb-auth .fb-auth-card .password-input input {
    padding-right: 52px !important;
}

body.fb-auth .fb-auth-card .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Kom ihåg mig + Glömt lösenord aynı satırda */
body.fb-auth .fb-auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin: -4px 0 18px;
}

body.fb-auth .fb-auth-row label.woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

body.fb-auth .fb-auth-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    display: inline-block !important; /* Rey 2.3.x Woo kutucuğunu gizleyip kendi çizimini kullanıyor (Pärlan) */
    flex: none;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    accent-color: var(--fba-band);
}

body.fb-auth .fb-auth-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] + span {
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--fba-ink) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

body.fb-auth .fb-auth-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] + span::before,
body.fb-auth .fb-auth-row label.woocommerce-form__label-for-checkbox input[type="checkbox"] + span::after {
    display: none !important;
}

body.fb-auth .fb-auth-card a.fb-auth-lost {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--fba-link) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

body.fb-auth .fb-auth-card a.fb-auth-lost::after {
    display: none !important;
}

/* Düğmeler */
body.fb-auth .fb-auth-card .form-row.fb-auth-submit,
body.fb-auth .fb-auth-card .lost_reset_password .form-row:has(button) {
    margin: 0 !important;
}

body.fb-auth .fb-auth-card button.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--fba-cta) !important;
    color: var(--fba-cta-tc) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

body.fb-auth .fb-auth-card button.button:hover {
    filter: brightness(0.96);
}

body.fb-auth .fb-auth-card button.button:focus-visible {
    outline: 2px solid var(--fba-ink) !important;
    outline-offset: 2px;
}

/* Metinler */
body.fb-auth .fb-auth-card :is(.fb-auth-note, .lost_reset_password > p:first-child, .woocommerce-privacy-policy-text p),
body.fb-auth .fb-auth-card--reset > p {
    margin: 0 0 16px !important;
    color: var(--fba-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

body.fb-auth .fb-auth-card .woocommerce-privacy-policy-text p {
    font-size: 13px !important;
}

body.fb-auth .fb-auth-card .woocommerce-privacy-policy-text a {
    color: var(--fba-ink) !important;
    font-weight: 700;
}

body.fb-auth .fb-auth-card .sgr-main {
    margin: 0 0 14px;
}

/* Sosyal giriş: "eller" ayracı kapsayıcıyla birlikte gizlenir (uygulamada .nsl-container gizli) */
body.fb-auth .fb-auth-card .nsl-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.fb-auth .fb-auth-card .nsl-container::before {
    content: var(--fba-or, "eller");
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--fba-muted);
    font-size: 13px;
    background: linear-gradient(var(--fba-line), var(--fba-line)) left center / calc(50% - 30px) 1px no-repeat,
        linear-gradient(var(--fba-line), var(--fba-line)) right center / calc(50% - 30px) 1px no-repeat;
    justify-content: center;
}

body.fb-auth .fb-auth-card .nsl-container-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 0 !important;
}

body.fb-auth .fb-auth-card .nsl-container-buttons a {
    display: block !important;
    margin: 0 !important;
}

body.fb-auth .fb-auth-card .nsl-button {
    display: flex !important;
    align-items: center;
    min-height: 50px;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.fb-auth .fb-auth-card .nsl-button-google {
    border: 1.5px solid var(--fba-line) !important;
    background: #fff !important;
}

body.fb-auth .fb-auth-card .nsl-button-google .nsl-button-label-container {
    color: #1f1f1f !important;
}

body.fb-auth .fb-auth-card .nsl-button-label-container {
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Bildirimler kartın üstünde */
body.fb-auth .fb-auth-card .woocommerce-notices-wrapper:empty {
    display: none;
}

body.fb-auth .fb-auth-card :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
    margin: 16px 0 4px !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    list-style: none !important;
}

body.fb-auth .fb-auth-card :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
    display: none !important;
}

body.fb-auth .fb-auth-card .woocommerce-error {
    background: #fdecec !important;
    color: #8a1c1c !important;
}

body.fb-auth .fb-auth-card :is(.woocommerce-message, .woocommerce-info) {
    background: #eaf5ee !important;
    color: #0f5b2c !important;
}

body.fb-auth .fb-auth-card :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) * {
    color: inherit !important;
}

body.fb-auth .fb-auth-card :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) li {
    margin: 0 !important;
    padding: 0 !important;
}

body.fb-auth .fb-auth-card .woocommerce-notices-wrapper + .fb-auth-tabs,
body.fb-auth .fb-auth-card :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) + .fb-auth-tabs {
    margin-top: 4px;
}

@media (min-width: 768px) {
    body.fb-auth {
        --fba-head: 50px; /* masaüstünde başlık akışta; public-styles.css 50px üst boşluk */
    }

    body.fb-auth .fb-auth-band {
        padding: calc(var(--fba-head) + 32px) 24px 104px;
    }

    body.fb-auth .fb-auth-band h1 {
        font-size: 32px !important;
    }

    body.fb-auth .fb-auth-band p {
        max-width: 420px;
        font-size: 16px;
    }

    body.fb-auth .fb-auth-card {
        margin-top: -76px;
        padding: 12px 36px 34px;
    }

    body.fb-auth .fb-auth-card--reset {
        padding-top: 34px;
    }

    body.fb-auth .rey-pageContent .woocommerce {
        padding-bottom: 80px;
    }
}

/* Bazı sitelerde hesap sayfası wpautop'tan geçiyor (Kalles): araya giren <br>'ler sekme ızgarasını ve satır aralıklarını bozmasın */
body.fb-auth :is(.fb-auth-card, .fb-auth-tabs) br {
    display: none;
}

/* food-butik-forms Turnstile kutusu şifre alanına yapışmasın */
body.fb-auth .fb-auth-card .fbf-turnstile {
    margin: 6px 0 14px !important;
}
