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

:root {
    --primary:      #c0392b;
    --primary-dark: #96281b;
    --primary-glow: rgba(192,57,43,0.35);
    --gold:         #f39c12;
    --surface:      rgba(255,255,255,0.08);
    --surface-hover:rgba(255,255,255,0.14);
    --border:       rgba(255,255,255,0.18);
    --text:         #f0f0f0;
    --text-muted:   rgba(240,240,240,0.55);
    --input-bg:     rgba(255,255,255,0.07);
    --input-focus:  rgba(255,255,255,0.14);
    --error-bg:     rgba(192,57,43,0.18);
    --error-border: rgba(192,57,43,0.6);
    --radius:       16px;
    --radius-sm:    10px;
    --shadow:       0 25px 60px rgba(0,0,0,0.55);
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #0f0f1a;
    color: var(--text);
    overflow: hidden;
}

/*  Animasyonlu arka plan  */
.bg {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(192,57,43,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(52,73,94,0.35) 0%, transparent 55%),
        linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 12s ease-in-out infinite alternate;
}
.bg-orb.o1 {
    width: 420px; height: 420px;
    top: -100px; left: -80px;
    background: radial-gradient(circle, rgba(192,57,43,0.5), transparent 70%);
    animation-delay: 0s;
}
.bg-orb.o2 {
    width: 350px; height: 350px;
    bottom: -80px; right: -60px;
    background: radial-gradient(circle, rgba(41,128,185,0.4), transparent 70%);
    animation-delay: -4s;
}
.bg-orb.o3 {
    width: 250px; height: 250px;
    top: 50%; left: 60%;
    background: radial-gradient(circle, rgba(243,156,18,0.2), transparent 70%);
    animation-delay: -8s;
}
@keyframes drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(30px,20px) scale(1.08); }
}

/* Grid deseni */
.bg::after {
    content: '';
    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: 50px 50px;
}

/*  Merkez kart  */
.page {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 40px 40px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
    animation: cardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes cardIn {
    from { opacity:0; transform: translateY(32px) scale(0.96); }
    to   { opacity:1; transform: translateY(0)    scale(1); }
}

/*  Logo / balk  */
.logo-wrap {
    text-align: center;
    margin-bottom: 32px;
}

.logo-img {
    display: block;
    margin: 0 auto 14px;
    max-width: 240px;
    height: auto;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/*  Hata mesaj  */
.hata-kutu {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    color: #ff8a80;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/*  Form alanlar  */
.form-grup {
    margin-bottom: 18px;
}

.form-etiket {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.alan-wrap {
    position: relative;
}

.alan-ikon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 17px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

.lg-form-input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.lg-form-input::placeholder { color: var(--text-muted); }

.lg-form-input:focus {
    border-color: var(--primary);
    background: var(--input-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.lg-form-input:focus ~ .alan-ikon,
.alan-wrap:focus-within .alan-ikon {
    opacity: 0.9;
}

/* Sifre goster/gizle */
.goster-btn {
    position: absolute;
    right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}
.goster-btn:hover { color: var(--text); }

/* Giris butonu  */
.giris-btn {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 24px var(--primary-glow);
}

.giris-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    border-radius: inherit;
}

.giris-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px var(--primary-glow);
}

.giris-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.giris-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*  Alt bilgi  */
.alt-bilgi {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.versiyon {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    color: var(--gold);
}
