/* ===================================
   BAYRAK TAKİP — LOGIN v2
   Modern split-layout
   =================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:       #0f172a;
    --ink-soft:  #475569;
    --surface:   #ffffff;
    --border:    #e2e8f0;
    --accent:    #e63946;
    --accent-dk: #c1121f;
    --gold:      #f59e0b;
    --radius:    14px;
    --shadow:    0 24px 64px rgba(0,0,0,.14);
}

html, body {
    height: 100%;
    font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
    background: #f1f5f9;
}

/* ── Arkaplan ── */
.bg-layer {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
    background-size: 40px 40px;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .28;
    will-change: transform;
}
.orb-1 { width: 520px; height: 520px; background: #e63946; top: -160px; left: -100px; animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: #f59e0b; bottom: -130px; right: -80px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 320px; height: 320px; background: #3b82f6; top: 45%; left: 45%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(36px,28px) scale(1.08); } }

/* ── Wrapper ── */
.login-wrapper {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── Sol Panel ── */
.brand-panel {
    flex: 0 0 46%;
    background: var(--ink);
    padding: 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.brand-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.brand-panel::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.brand-content { position: relative; z-index: 1; }

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230,57,70,.18);
    color: #ff8a93;
    border: 1px solid rgba(230,57,70,.25);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.brand-title {
    font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
    font-size: 52px;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -.5px;
}
.brand-title span { color: var(--accent); font-style: italic; }

.brand-desc {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 36px;
}

.brand-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px 20px;
    width: fit-content;
}
.stat { text-align: center; padding: 0 20px; }
.stat-num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 28px;
    color: #fff;
    line-height: 1;
    display: block;
}
.stat-label { font-size: 10.5px; color: rgba(255,255,255,.3); letter-spacing: .5px; text-transform: uppercase; margin-top: 3px; display: block; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

.brand-flag-deco {
    position: absolute;
    right: -20px; bottom: 40px;
    font-size: 160px;
    opacity: .04;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ── Sağ Panel ── */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-inner {
    width: 100%;
    max-width: 380px;
}

.form-logo {
    margin-bottom: 28px;
}
.form-logo img {
    height: 40px;
    object-fit: contain;
}

.form-title {
    font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 6px;
    font-weight: 400;
    letter-spacing: -.3px;
}

.form-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 28px;
}

/* ── Hata çubuğu ── */
.error-bar {
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.2);
    border-left: 3px solid #dc2626;
    color: #991b1b;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    letter-spacing: .1px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap > i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.input-wrap input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px 11px 38px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    color: var(--ink);
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,.1);
    background: #fff;
}
.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color .15s;
}
.toggle-pw:hover { color: var(--ink); }

/* ── Giriş butonu ── */
.btn-login {
    width: 100%;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -.1px;
    margin-top: 6px;
}
.btn-login:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,57,70,.28);
}
.btn-login:active { transform: translateY(0); }

/* ── Alt link ── */
.track-link {
    text-align: center;
    margin-top: 20px;
}
.track-link a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.track-link a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .form-panel { padding: 40px 32px; }
}
@media (max-width: 480px) {
    .form-panel { padding: 32px 20px; }
    .form-inner { max-width: 100%; }
}
