/* LabFinansgo - Login Sayfasi (tek logo: /assets/logo.png, renkli — filtre yok) */
.login-sayfa {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(165deg, #eef2ff 0%, #f5f7fa 45%, #f0f4fb 100%);
    padding: 1rem;
}
.login-kutu {
    background: #fff; padding: 2.5rem 2rem; border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
    width: 100%; max-width: 400px; text-align: center;
}
.login-logo {
    max-width: 280px;
    margin: 0 auto 1.75rem;
}
.login-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-input {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 1rem;
    /* line-height + simetrik padding → e-posta / şifre aynı optik hiza (password type farkını azaltır) */
    padding: 0.65625rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-field {
    margin-bottom: 1rem;
    text-align: left;
}
.login-field > .login-input {
    margin-bottom: 0;
}
.login-field-error {
    display: none;
    margin: 0.35rem 0 0;
    padding: 0 2px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #b91c1c;
}
.login-field-error.is-visible {
    display: block;
}
.login-input.login-input--hatali {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.login-input.login-input--hatali:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.sifre-wrap {
    position: relative;
    margin-bottom: 1rem;
}
/* Şifre: e-posta ile aynı satır yüksekliği; type=password farklı font kullanmasın */
.sifre-wrap .login-input {
    width: 100%;
    margin-bottom: 0;
    padding-top: 0.65625rem;
    padding-bottom: 0.65625rem;
    padding-right: 2.75rem;
    padding-left: 1rem;
    line-height: 1.5rem;
}
.sifre-goster {
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    /* margin: 0 burada OLMAMALI — dikey ortalamayı öldürüyordu (ikon yukarı kaçıyordu) */
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.sifre-goster:hover {
    color: #334155;
    background-color: rgba(15, 23, 42, 0.06);
}
.sifre-goster:focus {
    outline: none;
}
.sifre-goster:focus-visible {
    color: #334155;
    background-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(51, 65, 85, 0.35);
}
.sifre-goster:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.sifre-goster__ikon {
    position: absolute;
    width: 1.3125rem;
    height: 1.3125rem;
    pointer-events: none;
}
.sifre-goster__gizle {
    display: none;
}
.sifre-goster.is-acik .sifre-goster__goster {
    display: none;
}
.sifre-goster.is-acik .sifre-goster__gizle {
    display: block;
}

.login-link {
    display: block; margin-bottom: 1.5rem;
    font-size: 0.85rem; color: #666; text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600;
}
.login-link:hover { color: #1d4ed8; }

.login-btn {
    width: 100%; padding: 0.85rem; border: none; border-radius: 8px;
    background: #2563eb; color: #fff; font-size: 1rem; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    transition: background 0.2s;
    cursor: pointer;
}
.login-btn:hover { background: #1d4ed8; }

/* Brute-force geri sayımı: form kilitliyken link ve buton kullanılamaz (inert + görsel) */
#loginForm.login-form--kilitli .login-btn {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
#loginForm.login-form--kilitli .login-link {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}

.login-copyright {
    margin-top: 1.5rem; font-size: 0.8rem; color: #aaa;
}

/* Hata mesaji */
.login-hata {
    background: #ffeaea; color: #c00; padding: 0.6rem; border-radius: 6px;
    margin-bottom: 1rem; font-size: 0.9rem;
}
.login-hata--kritik {
    background: #ffd4d4; border: 1px solid #c00; font-weight: 600;
}
.login-hata--uyari {
    background: #fff4e6; color: #e65100; border: 1px solid #ff9800;
    font-weight: 600;
}
.login-hata--kilit {
    background: #e3f2fd; color: #1565c0; border: 1px solid #1976d2;
}

/* Sifremi unuttum modal */
.sifirla-modal .modal-box { text-align: left; }
.sifirla-modal h3 { text-align: center; margin-bottom: 0.25rem; }
.sifirla-modal p { text-align: center; font-size: 0.9rem; }
.sifirla-modal input { width: 100%; margin-top: 1rem; }
.sifirla-modal .modal-actions { margin-top: 1rem; }

/* 6 haneli kod input */
.kod-input {
    width: 100%; padding: 0.85rem 1rem; margin-top: 1rem;
    border: 1px solid #ddd; border-radius: 8px; font-size: 1.5rem;
    text-align: center; letter-spacing: 12px; font-weight: 700;
}
.kod-input::placeholder { letter-spacing: 2px; font-size: 0.9rem; font-weight: 400; }

/* ADIM 3: Sifre / Sifre tekrari (kriter listesi + guclu sifre) */
.sifirla-modal .sf-label {
    display: block; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.5px; color: #374151; margin-top: 1rem; margin-bottom: 0.35rem;
}
.sifirla-modal .sf-label:first-of-type { margin-top: 0; }
.sifirla-modal .sf-password-wrap {
    position: relative; display: flex; align-items: center;
    border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sifirla-modal .sf-password-wrap:focus-within {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.sifirla-modal .sf-password-wrap input {
    flex: 1; min-width: 0; padding: 10px 44px 10px 14px;
    border: none; border-radius: 8px; font-size: 14px; background: transparent;
}
.sifirla-modal .sf-password-wrap input:focus { outline: none; }
.sifirla-modal .sf-password-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; border: none; background: transparent;
    color: #6b7280; cursor: pointer; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.sifirla-modal .sf-password-toggle:hover { color: #374151; background: #f3f4f6; }
.sifirla-modal .sf-password-toggle svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.sifirla-modal .sf-sifre-kriterler {
    list-style: none; margin: 8px 0 0 0; padding: 0;
    font-size: 12px; color: #6b7280;
}
.sifirla-modal .sf-sifre-kriterler li {
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.sifirla-modal .sf-sifre-kriterler .sf-kriter-ikon {
    display: inline-block; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid #d1d5db; flex-shrink: 0;
}
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-ok { color: #16a34a; }
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-ok .sf-kriter-ikon {
    border-color: #16a34a; background: #16a34a;
}
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-ok .sf-kriter-ikon::after {
    content: '\2713'; display: block; font-size: 11px; color: #fff;
    line-height: 16px; text-align: center;
}
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-hata { color: #dc2626; }
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-hata .sf-kriter-ikon {
    border-color: #dc2626; background: #dc2626;
}
.sifirla-modal .sf-sifre-kriterler li.sf-kriter-hata .sf-kriter-ikon::after {
    content: '\2715'; display: block; font-size: 11px; color: #fff;
    line-height: 16px; text-align: center;
}
.sifirla-modal .sf-guclu-btn {
    width: 100%; padding: 0.75rem 1rem; margin-top: 0.75rem; margin-bottom: 0.25rem;
    border: none; border-radius: 8px; background: #2563eb; color: #fff;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.sifirla-modal .sf-guclu-btn:hover { background: #1d4ed8; }

/* Geri sayim */
.geri-sayim {
    display: flex; align-items: center; justify-content: center;
    gap: 0.4rem; margin-top: 1rem; padding: 0.6rem;
    background: #f0f7ff; border-radius: 8px; color: #1976d2;
    font-weight: 600; font-size: 0.95rem;
}
.geri-sayim-ikon { font-size: 1.1rem; }

/* Tekrar kod gonder */
.tekrar-gonder {
    text-align: center; margin-top: 1rem;
    padding: 0.75rem; background: #fff3e0; border-radius: 8px;
}
.tekrar-gonder-mesaj {
    font-size: 0.85rem; color: #e65100; margin-bottom: 0.5rem;
}
.tekrar-gonder-btn {
    padding: 0.5rem 1.5rem; border: none; border-radius: 6px;
    background: #ff9800; color: #fff; font-size: 0.85rem;
    font-weight: 600; letter-spacing: 0.3px; transition: background 0.2s;
}
.tekrar-gonder-btn:hover { background: #f57c00; }

/* Sifre sifirlama yontem secimi */
.sf-yontem-secim {
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-top: 1.25rem;
}
.sf-yontem-btn {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.25rem 1rem; border: 2px solid #e0e0e0; border-radius: 10px;
    background: #fafafa; cursor: pointer; transition: all 0.2s;
}
.sf-yontem-btn:hover {
    border-color: #222; background: #f0f0f0;
}
.sf-yontem-icon {
    font-size: 1.5rem; margin-bottom: 0.4rem;
}
.sf-yontem-baslik {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px;
    color: #222;
}
.sf-yontem-aciklama {
    font-size: 0.78rem; color: #888; margin-top: 0.2rem;
}
.sf-geri-link {
    font-size: 0.82rem; color: #666; text-decoration: none;
}
.sf-geri-link:hover { color: #222; }

/* ================================
   Aktif Oturumlar Modal
   Checkbox seçimli kartlar + 3 buton
================================ */
.oturum-modal .modal-box {
    padding: 2rem 1.5rem; max-width: 480px; text-align: center;
}
.oturum-baslik-ikon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.oturum-modal h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.oturum-aciklama {
    font-size: 0.85rem; color: #777; line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Oturum listesi */
.oturum-liste {
    max-height: 260px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-bottom: 1.25rem; text-align: left;
}

/* Oturum kart = label (tıklanabilir) */
.oturum-kart {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 0.75rem; border: 2px solid #e8e8e8;
    border-radius: 10px; background: #fafafa;
    cursor: pointer; transition: all 0.2s;
    user-select: none;
}
.oturum-kart:hover { border-color: #bbb; background: #f5f5f5; }
.oturum-kart:has(input:checked) {
    border-color: #1976d2; background: #e8f0fe;
}
.oturum-kart.oturum-kapatildi {
    opacity: 0.35; background: #f0f0f0;
    border-color: #ddd; pointer-events: none;
    text-decoration: line-through;
}

/* Checkbox */
.oturum-kart-cb { flex-shrink: 0; }
.oturum-kart-cb input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer;
    accent-color: #1976d2;
}

/* İkon */
.oturum-kart-ikon {
    flex-shrink: 0; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; background: #f0f0f0; border-radius: 8px;
}
.oturum-kart:has(input:checked) .oturum-kart-ikon {
    background: #bbdefb;
}

/* Bilgi */
.oturum-kart-bilgi { flex: 1; min-width: 0; }
.oturum-cihaz {
    font-size: 0.85rem; font-weight: 600; color: #222;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oturum-meta {
    display: flex; gap: 0.35rem; font-size: 0.73rem;
    color: #999; margin-top: 2px;
}

/* 3 buton alt alta */
.oturum-butonlar {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.oturum-btn {
    width: 100%; padding: 0.7rem; border: none; border-radius: 8px;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.2s;
}

/* Tümünü kapat - gri */
.oturum-btn-tumu {
    background: #fff; color: #333;
    border: 1px solid #ddd;
}
.oturum-btn-tumu:hover { background: #f5f5f5; border-color: #bbb; }

/* Seçili kapat - kırmızı */
.oturum-btn-secili {
    background: #d32f2f; color: #fff;
}
.oturum-btn-secili:hover { background: #b71c1c; }
.oturum-btn-secili:disabled { cursor: not-allowed; }

/* Devam et - siyah */
.oturum-btn-devam {
    background: #222; color: #fff;
}
.oturum-btn-devam:hover { background: #444; }
