/* ==========================================================================
   TBC YAZILIM — Auth Design System v2
   Sade, kurumsal, "resmi doğrulama sistemi" hissi veren merkezi kart düzeni.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --navy: #0B2545;
    --navy-2: #123163;
    --blue: #1358B0;
    --blue-dark: #0E4488;
    --paper: #FFFFFF;
    --bg: #EDEFF3;
    --box: #F4F6F9;
    --text: #1A2433;
    --text-muted: #667085;
    --line: #E1E5EC;
    --success: #1E8E5A;
    --danger: #C6362E;
    --radius-lg: 16px;
    --radius-md: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

/* ---------- Kimlik başlığı (logo + isim) ---------- */

.kimlik-header {
    text-align: center;
    margin-bottom: 22px;
}

.kimlik-header .mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(11,37,69,0.25);
}

.kimlik-header h1 {
    font-size: 25px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.2px;
}

.kimlik-header .sistem-adi {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ---------- Kart (ana beyaz panel) ---------- */

.screen { display: none; }
.screen.active { display: block; }

.kart {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 26px 26px 30px;
    box-shadow: 0 8px 30px rgba(11,37,69,0.10);
    border: 1px solid var(--line);
    width: 100%;
}

/* Kimlik / kaynak kutusu — güven bandı */

.kaynak-kutu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--box);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    margin-bottom: 22px;
}

.kaynak-kutu .ikon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.kaynak-kutu .metin .baslik { font-size: 14px; font-weight: 700; color: var(--navy); }
.kaynak-kutu .metin .url { font-size: 12.5px; color: var(--text-muted); }

.kart h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.kart .alt-metin {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.bilgi-notu {
    color: var(--text);
    font-size: 13px;
    background: var(--box);
    border: 1px solid var(--line);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 20px;
    word-break: break-word;
}

.input-grup { margin-bottom: 16px; }

.input-grup label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}

.input-grup label::before {
    content: "*";
    color: var(--blue);
    font-weight: 700;
}

.mobil-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    background: var(--paper);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
}

.mobil-input:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(19,88,176,0.14);
}

.mobil-input::placeholder { color: #9AA6B5; }

/* ---------- Butonlar: İptal (gri) + Giriş (mavi), yan yana ---------- */

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    flex: 1;
}

.btn.ana {
    background: var(--blue);
    color: #fff;
}
.btn.ana:hover { background: var(--blue-dark); }
.btn.ana:active { transform: scale(0.99); }

.btn.iptal {
    background: var(--box);
    color: var(--text);
    border: 1px solid var(--line);
    flex: 0 0 auto;
    padding: 13px 22px;
}
.btn.iptal:hover { background: #E7EAF0; }

.btn.tam { width: 100%; }

.alt-links { margin-top: 20px; text-align: center; }

.alt-links a, .geri-don a {
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.alt-links a:hover, .geri-don a:hover { text-decoration: underline; }

.geri-don { margin-top: 18px; text-align: center; }

/* ---------- Kalan süre çubuğu (2FA / cihaz kodu ekranı) ---------- */

.sure-cubuk {
    background: #52596B;
    color: #fff;
    border-radius: var(--radius-md);
    padding: 13px 16px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.sure-cubuk .sayac {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    margin-left: 6px;
}

.sure-cubuk.bitti { background: var(--danger); }

/* ---------- Doğrulama kodu kutuları (device code) ---------- */

.kod-kutular { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 20px; }

.kod-input {
    width: 100%;
    aspect-ratio: 1 / 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    background: var(--box);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.kod-input:focus {
    border-color: var(--blue);
    outline: none;
    background: var(--paper);
    box-shadow: 0 0 0 3.5px rgba(19,88,176,0.14);
}

/* ---------- Alt not (güven metni) ---------- */

.guven-notu {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 18px;
    line-height: 1.6;
}

/* ---------- Modal / mesaj kutusu ---------- */

.mesaj-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,37,69,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mesaj-kart {
    background: var(--paper);
    border-radius: var(--radius-lg);
    max-width: 380px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: mesajGir 0.2s ease;
    overflow: hidden;
}

@keyframes mesajGir {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.mesaj-baslik {
    padding: 20px 24px 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
}

.mesaj-icerik {
    padding: 20px 24px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    word-break: break-word;
}

.mesaj-alt { padding: 4px 24px 22px; }

@media (max-width: 380px) {
    .kart { padding: 20px 18px 24px; }
    .kimlik-header h1 { font-size: 22px; }
}
