/* ===== EsbiPazarYeri · Giriş Sayfası ===== */
:root {
    --c-bg: #f7f8fb;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-border: #e2e8f0;
    --c-input-bg: #ffffff;
    --c-input-focus: #6366f1;
    --c-primary: #4f46e5;
    --c-primary-hover: #4338ca;
    --c-primary-glow: rgba(79, 70, 229, 0.35);
    --c-danger: #dc2626;
    --c-danger-bg: #fef2f2;
    --c-success: #16a34a;
    --r-md: 10px;
    --r-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
    --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

/* ===== SOL PANEL: MARKA ===== */
.auth-brand {
    position: relative;
    background: #0f172a;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}

.brand-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #312e81 100%);
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: float 12s ease-in-out infinite;
}

.blob-1 {
    width: 480px; height: 480px;
    top: -120px; left: -120px;
    background: #6366f1;
    animation-delay: 0s;
}

.blob-2 {
    width: 380px; height: 380px;
    bottom: -100px; right: -80px;
    background: #ec4899;
    animation-delay: -4s;
}

.blob-3 {
    width: 300px; height: 300px;
    top: 40%; left: 50%;
    background: #06b6d4;
    animation-delay: -8s;
    opacity: 0.35;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.brand-headline { margin-top: auto; }
.brand-headline h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.brand-headline .grad {
    background: linear-gradient(90deg, #c7d2fe 0%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-headline p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
}

.brand-features i {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #c7d2fe;
    flex-shrink: 0;
}

.brand-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.brand-footer .dot { font-size: 1.2em; line-height: 0; }

/* ===== SAĞ PANEL: FORM ===== */
.auth-main {
    display: grid;
    place-items: center;
    padding: 48px 32px;
    background: var(--c-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: slideUp 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-header-area { margin-bottom: 32px; }
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--c-primary);
}
.mobile-logo i {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    display: grid; place-items: center;
}
.card-header-area h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.muted { color: var(--c-muted); font-size: 0.92rem; }

/* ===== ALERT ===== */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    font-size: 0.88rem;
    animation: shake 400ms;
}
.alert-banner.alert-danger {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid #fecaca;
}
.alert-banner i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ===== FORM FIELDS ===== */
.field { margin-bottom: 18px; }
.field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 7px;
}
.field label i { color: var(--c-muted); font-size: 0.95rem; }

.input-wrap {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-input-bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--c-text);
    transition: all var(--t);
    outline: none;
}
.form-input::placeholder { color: #cbd5e1; }
.form-input:hover { border-color: #cbd5e1; }
.form-input:focus {
    border-color: var(--c-input-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

#sifreInput { padding-right: 44px; }

.toggle-pwd {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px; height: 32px;
    border-radius: 6px;
    color: var(--c-muted);
    cursor: pointer;
    display: grid; place-items: center;
    transition: all var(--t);
}
.toggle-pwd:hover { background: #f1f5f9; color: var(--c-text); }

.field-error {
    display: block;
    color: var(--c-danger);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* ===== ROW: Beni hatırla / Şifremi unuttum ===== */
.row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 24px;
    font-size: 0.88rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    color: var(--c-text);
}
.check input { display: none; }
.check-box {
    width: 18px; height: 18px;
    border: 1.5px solid var(--c-border);
    border-radius: 5px;
    display: grid; place-items: center;
    transition: all var(--t);
    background: #fff;
}
.check-box i { font-size: 13px; color: #fff; opacity: 0; transition: all var(--t); }
.check input:checked + .check-box {
    background: var(--c-primary);
    border-color: var(--c-primary);
}
.check input:checked + .check-box i { opacity: 1; }

.link {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--t);
}
.link:hover { color: var(--c-primary-hover); text-decoration: underline; }

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-primary) 0%, #6366f1 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--t);
    box-shadow: 0 4px 14px var(--c-primary-glow);
    position: relative;
    overflow: hidden;
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--c-primary-glow);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { cursor: wait; opacity: 0.85; }
.btn-submit i { font-size: 1.05rem; transition: transform var(--t); }
.btn-submit:hover i { transform: translateX(3px); }

.spinner {
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
    opacity: 0;
    transition: opacity var(--t);
}
.btn-submit.loading .btn-label,
.btn-submit.loading > i { opacity: 0; }
.btn-submit.loading .spinner { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.card-footer-area {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--c-muted);
}
.security-note i { color: var(--c-success); font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

@media (max-width: 575px) {
    .auth-main { padding: 24px 16px; }
    .auth-card { padding: 28px 22px; box-shadow: none; background: transparent; }
    .card-header-area h2 { font-size: 1.35rem; }
}
