﻿/* ==========================================================================
   Hesap ekranları (Giriş, Kayıt, Şifremi Unuttum) — kurumsal iki parçalı kart
   Sol: lacivert marka paneli (logo renklerinden ince şerit), sağ: form.
   custom.css'teki eski .login-outer/.login-form kuralları bu sınıflara dokunmaz.
   ========================================================================== */

.spa-page {
    --a-ink: #13233a;
    --a-muted: #5a6779;
    --a-line: #d6dde6;
    --a-bg: #edf1f5;
    --a-navy: #0f2b4c;
    --a-blue: #1863c6;
    --a-blue-dark: #124e9e;
    --a-focus: rgba(24, 99, 198, 0.2);
    --a-danger: #b42318;

    min-height: 100vh;
    background: var(--a-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    color: var(--a-ink);
    line-height: 1.5;
}

/* ---------- Kart ---------- */
.spa-shell {
    display: flex;
    width: 100%;
    max-width: 960px;
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 35, 58, 0.05), 0 18px 44px rgba(16, 35, 58, 0.08);
}

.spa-shell--wide {
    max-width: 1120px;
}

/* ---------- Marka paneli ---------- */
.spa-brand {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 56px 44px 40px;
    background: var(--a-navy);
    color: #fff;
}

.spa-shell--wide .spa-brand {
    flex-basis: 34%;
}

    /* Logonun dört rengi */
    .spa-brand::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #43a047 0 25%, #29a3dc 25% 50%, #e53935 50% 75%, #fbc02d 75% 100%);
    }

    .spa-brand h2 {
        margin: 0 0 14px;
        font-size: 26px;
        line-height: 1.3;
        font-weight: 600;
        color: #fff;
        letter-spacing: -0.2px;
    }

    .spa-brand .spa-brand-lead {
        margin: 0 0 30px;
        font-size: 14.5px;
        line-height: 1.65;
        color: #c5d3e4;
    }

.spa-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .spa-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 0 0 16px;
        font-size: 14.5px;
        line-height: 1.5;
        color: #e6edf6;
    }

    .spa-list .fa {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: #8cc4ff;
        font-size: 12px;
        line-height: 24px;
        text-align: center;
    }

/* Modül slaytları: hepsi aynı hücrede üst üste, yükseklik en uzununa göre (geçişte zıplama olmaz) */
.spa-slides {
    display: grid;
}

.spa-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

    .spa-slide.is-active {
        opacity: 1;
        visibility: visible;
    }

.spa-steps {
    display: flex;
    gap: 8px;
    margin: 28px 0 0;
}

.spa-step {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    color: #a9b9cc;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .spa-step:hover {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.5);
    }

    .spa-step.is-active {
        color: var(--a-navy);
        background: #fff;
        border-color: #fff;
    }

    .spa-step:focus-visible {
        box-shadow: 0 0 0 3px rgba(140, 196, 255, 0.5);
    }

.spa-brand-foot {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .spa-brand-foot p {
        margin: 0;
        font-size: 13px;
        line-height: 1.9;
        color: #a9b9cc;
    }

    .spa-brand-foot a {
        color: #fff;
        white-space: nowrap;
    }

        .spa-brand-foot a:hover {
            color: #8cc4ff;
        }

/* ---------- Form paneli ---------- */
.spa-panel {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    padding: 48px 52px 44px;
}

.spa-logo {
    display: block;
    width: 168px;
    height: auto;
}

.spa-panel h1 {
    margin: 28px 0 6px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--a-ink);
    letter-spacing: -0.2px;
}

.spa-panel .spa-sub {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--a-muted);
}

.spa-panel h1 + form,
.spa-panel h1 + .spa-alert {
    margin-top: 24px;
}

/* Alanlar */
.spa-field {
    margin: 0 0 18px;
}

    .spa-field label,
    .spa-panel .form-group > label {
        display: block;
        margin: 0 0 6px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        color: var(--a-ink);
    }

.spa-panel .form-group {
    margin-bottom: 18px;
}

/* Bootstrap .form-horizontal .form-group negatif kenar boşluğunu sıfırla */
.spa-panel .form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

/* Form satırları başlık/buton ile aynı hizada başlasın (bootstrap gutter'ı içeri çek) */
.spa-panel .row {
    margin-left: -10px;
    margin-right: -10px;
}

    .spa-panel .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

.spa-panel input.form-control,
.spa-panel select.form-control,
.spa-panel .spa-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 44px;
    color: var(--a-ink);
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Sınıfsız metin/şifre alanları (eski ekranlardan taşınan formlar) */
.spa-panel input[type="text"]:not([class]),
.spa-panel input[type="email"]:not([class]),
.spa-panel input[type="password"]:not([class]) {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--a-ink);
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .spa-panel input[type="text"]:not([class]):focus,
    .spa-panel input[type="email"]:not([class]):focus,
    .spa-panel input[type="password"]:not([class]):focus {
        outline: none;
        border-color: var(--a-blue);
        box-shadow: 0 0 0 3px var(--a-focus);
    }

/* 6 haneli doğrulama kodu */
.spa-panel .otp-input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 12px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 12px;
    text-align: center;
    color: var(--a-ink);
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 8px;
}

    .spa-panel .otp-input:focus {
        outline: none;
        border-color: var(--a-blue);
        box-shadow: 0 0 0 3px var(--a-focus);
    }

.dev-otp-banner,
.info-banner {
    margin: 0 0 18px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
}

.dev-otp-banner {
    color: #7a4a12;
    background: #fff8eb;
    border: 1px solid #f5d9a8;
}

.info-banner {
    color: #135c33;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

/* "Kodu tekrar gönder" */
.resend-link {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--a-blue);
    background: none;
    border: 0;
    cursor: pointer;
}

    .resend-link:hover {
        color: var(--a-blue-dark);
    }

    .resend-link[disabled] {
        color: var(--a-muted);
        cursor: default;
    }

/* Onay sayfalarında tek buton bağlantısı */
a.spa-btn {
    line-height: 46px;
    text-align: center;
    color: #fff;
}

    a.spa-btn:hover {
        color: #fff;
    }

.spa-panel select.form-control {
    line-height: normal;
    padding-right: 32px;
}

    .spa-panel input.form-control:focus,
    .spa-panel select.form-control:focus,
    .spa-panel .spa-input:focus {
        outline: none;
        border-color: var(--a-blue);
        box-shadow: 0 0 0 3px var(--a-focus);
    }

.spa-panel .input-validation-error {
    border-color: var(--a-danger) !important;
}

.field-error {
    display: block;
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--a-danger);
}

    .field-error:empty {
        display: none;
    }

.field-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--a-muted);
}

/* Uyarı / hata kutuları */
.spa-alert,
.spa-panel .validation-summary-errors {
    margin: 0 0 20px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--a-danger);
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
}

    .spa-panel .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.spa-panel .validation-summary-valid {
    display: none;
}

.spa-note {
    margin: 0 0 20px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #7a4a12;
    background: #fff8eb;
    border: 1px solid #f5d9a8;
    border-radius: 8px;
}

    .spa-note .fa {
        margin-right: 6px;
        color: #c27a12;
    }

/* Birincil buton */
.spa-btn {
    display: block;
    width: 100%;
    height: 46px;
    margin: 8px 0 0;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--a-blue);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .spa-btn:hover {
        background: var(--a-blue-dark);
    }

    .spa-btn:focus-visible {
        box-shadow: 0 0 0 3px var(--a-focus);
    }

    .spa-btn[disabled] {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Beni hatırla + şifremi unuttum satırı */
.spa-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 13px;
}

    .spa-row-between a {
        color: var(--a-blue);
        font-weight: 500;
    }

        .spa-row-between a:hover {
            color: var(--a-blue-dark);
        }

/* Onay kutuları */
.spa-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--a-muted);
    cursor: pointer;
}

    .spa-check input[type="checkbox"] {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin: 2px 0 0;
        accent-color: var(--a-blue);
        cursor: pointer;
    }

    .spa-check a {
        color: var(--a-ink);
        font-weight: 500;
        border-bottom: 1px solid var(--a-line);
    }

        .spa-check a:hover {
            color: var(--a-blue);
            border-bottom-color: var(--a-blue);
        }

.spa-optional {
    font-style: normal;
    color: #8a95a5;
}

/* "veya" ayırıcı + sosyal girişler */
.spa-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    font-size: 12.5px;
    color: var(--a-muted);
}

    .spa-divider::before,
    .spa-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--a-line);
    }

.spa-social {
    display: flex;
    gap: 12px;
}

.spa-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--a-ink);
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .spa-social-btn:hover {
        background: #f5f7fa;
        border-color: #c3ccd8;
    }

    .spa-social-btn:focus-visible {
        box-shadow: 0 0 0 3px var(--a-focus);
    }

    .spa-social-btn .fa-facebook {
        font-size: 18px;
        color: #1877f2;
    }

/* Alt geçiş linki */
.spa-switch {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #edf0f4;
    text-align: center;
    font-size: 14px;
    color: var(--a-muted);
}

    .spa-switch a {
        color: var(--a-blue);
        font-weight: 600;
    }

        .spa-switch a:hover {
            color: var(--a-blue-dark);
        }

/* Dil seçici */
.spa-lang {
    position: absolute;
    top: 22px;
    right: 24px;
    display: flex;
    padding: 3px;
    border: 1px solid var(--a-line);
    border-radius: 999px;
    background: #fff;
}

.spa-lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--a-muted);
}

    .spa-lang-opt:hover {
        color: var(--a-ink);
        background: #f1f4f8;
    }

    .spa-lang-opt.is-active {
        color: #fff;
        background: var(--a-navy);
    }

/* Kart altı iletişim (mobilde marka paneli yerine) */
.spa-foot {
    display: none;
    margin-top: 20px;
    text-align: center;
}

    .spa-foot p {
        margin: 0;
        font-size: 12.5px;
        line-height: 1.9;
        color: var(--a-muted);
    }

    .spa-foot a {
        color: var(--a-ink);
    }

/* reCAPTCHA */
.sp-captcha {
    margin: 4px 0 18px;
}

    .sp-captcha .g-recaptcha {
        min-height: 78px;
    }

.sp-captcha-hata {
    margin-top: 8px;
    font-size: 13px;
    color: var(--a-danger);
}

/* Şifre gücü */
.pwd-strength {
    height: 4px;
    margin: 8px 0 4px;
    overflow: hidden;
    background: #e6eaf0;
    border-radius: 2px;
}

.pwd-strength-bar {
    width: 0;
    height: 100%;
    background: var(--a-danger);
    transition: width 0.2s ease, background 0.2s ease;
}

.pwd-strength-label {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--a-muted);
}

/* intl-tel-input (bayraklı telefon) */
.spa-panel .iti {
    display: block;
    width: 100%;
}

.spa-panel .iti__country-list {
    text-align: left;
    max-width: 320px;
    border-color: var(--a-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 35, 58, 0.12);
}

.spa-panel .iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

/* WhatsApp kısayolu */
.spa-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 26px;
    line-height: 52px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(16, 35, 58, 0.18);
}

    .spa-wa:hover,
    .spa-wa:focus {
        color: #fff;
        background: #1fb857;
    }

/* ---------- Duyarlı ---------- */
@media (max-width: 991px) {
    .spa-brand {
        display: none;
    }

    .spa-shell {
        max-width: 520px;
    }

    .spa-shell--wide {
        max-width: 680px;
    }

    .spa-foot {
        display: block;
    }
}

@media (max-width: 575px) {
    .spa-page {
        padding: 16px 12px 88px;
        justify-content: flex-start;
    }

    .spa-panel {
        padding: 32px 20px 28px;
    }

    .spa-lang {
        top: 16px;
        right: 16px;
    }

    .spa-logo {
        width: 140px;
    }

    .spa-panel h1 {
        font-size: 21px;
        margin-top: 24px;
    }

    .spa-social {
        flex-direction: column;
    }

    .spa-wa {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 22px;
        line-height: 46px;
    }
}

@media (max-width: 360px) {
    .sp-captcha .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left top;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spa-page * {
        transition: none !important;
    }
}

/* Şifre göster/gizle (Login) */
.spa-sifre { position: relative; }
.spa-panel .spa-sifre .spa-input { padding-right: 48px; }
.spa-goz { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: #64748B; cursor: pointer; font-size: 16px; transition: color .15s, background-color .15s; }
.spa-goz:hover { color: #2563EB; background: rgba(37, 99, 235, .08); }
.spa-goz:focus-visible { outline: 2px solid #2563EB; outline-offset: 1px; }
