/* Login sayfası — eski tasarım (cam kart + yıldızlı gece) korunarak satır içi stiller buraya taşındı. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --login-navy: #0F172A;
    --login-cyan: #38BDF8;
    --login-gold: #FEF08A;
    --login-ease: cubic-bezier(.4, 0, .2, 1);
}

body.login-page {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    background-color: var(--login-navy);
    background-image: linear-gradient(165deg, #FEF08A 0%, #F59E0B 14%, #38BDF8 36%, #0284C7 56%, #1E293B 80%, #0F172A 100%);
    background-size: 400% 400%;
    animation: meshFlow 20s ease-in-out infinite;
}
@keyframes meshFlow {
    0%   { background-position: 0% 20%; }
    50%  { background-position: 100% 80%; }
    100% { background-position: 0% 20%; }
}

body.login-page::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(circle at 74% 16%, rgba(254,240,138,.50) 0%, rgba(245,158,11,0) 55%),
        radial-gradient(circle at 20% 30%, rgba(56,189,248,.42) 0%, rgba(2,132,199,0) 60%),
        radial-gradient(ellipse 65% 45% at 50% 50%, rgba(255,255,255,.08) 0%, transparent 65%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 16s ease-in-out infinite alternate;
}
@keyframes orbDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 3%) scale(1.07); }
}

body.login-page::after {
    content: '';
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 46vh;
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,.50) 40%, rgba(15,23,42,.90) 100%);
    pointer-events: none;
    z-index: 0;
}

.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.stars span {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--d, 3s) var(--del, 0s) ease-in-out infinite alternate;
    opacity: var(--op, .6);
}
@keyframes twinkle {
    from { opacity: var(--op, .6); transform: scale(1); }
    to   { opacity: calc(var(--op, .6) * .3); transform: scale(.7); }
}

/* ── Kart ── */
.login-card {
    position: relative; z-index: 10;
    width: 100%; max-width: 380px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(24px) saturate(1.5) brightness(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(1.5) brightness(1.05);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 24px;
    padding: 44px 36px 36px;
    box-shadow: 0 12px 48px rgba(2,132,199,.20), 0 0 70px rgba(254,240,138,.10), 0 1px 0 rgba(255,255,255,.42) inset;
    animation: cardIn .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 32px;
    text-shadow: 0 2px 16px rgba(2,132,199,.40);
}

/* Mesajlar sayfaya yazılmaz (toast). Hatalı girişte alanlar sadece kenarlıkla vurgulanır. */
.input-group input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }

/* ── Input'lar ── */
.input-group { position: relative; margin-bottom: 20px; }
.input-icon-top {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    color: rgba(255,255,255,.60);
    font-size: 1rem;
    transition: color .2s, text-shadow .2s;
    cursor: pointer;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-group input {
    width: 100%;
    background: rgba(15,23,42,.26);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: 11px 42px 11px 20px;
    color: #fff;
    font-size: .92rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: background .2s, border-color .2s, box-shadow .2s;
    caret-color: var(--login-cyan);
    letter-spacing: .01em;
}
.input-group input::placeholder { color: rgba(255,255,255,.55); font-weight: 400; }
.input-group input:focus {
    background: rgba(2,132,199,.26);
    border-color: rgba(254,240,138,.85);
    box-shadow: 0 0 0 3px rgba(56,189,248,.25), 0 0 20px rgba(245,158,11,.30);
}
.input-group:focus-within .input-icon-top { color: var(--login-gold); text-shadow: 0 0 12px rgba(254,240,138,.75); }

.eye-btn {
    position: absolute; right: 14px;
    background: none; border: none;
    color: rgba(255,255,255,.45);
    font-size: .82rem; cursor: pointer;
    padding: 4px; transition: color .15s;
}
.eye-btn:hover, .eye-btn:focus-visible { color: rgba(255,255,255,.85); }

/* ── Buton ── */
.btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: rgba(255,255,255,.94);
    border: none;
    border-radius: 50px;
    color: var(--login-navy);
    font-weight: 700;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .02em;
    transition: all .2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.20);
    margin-bottom: 20px;
}
.btn-login:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.20), 0 4px 22px rgba(56,189,248,.55), 0 0 40px rgba(254,240,138,.35);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .7; cursor: wait; transform: none; }

/* ── Alt bilgi ── */
.card-footer {
    text-align: center;
    font-size: .75rem;
    color: rgba(255,255,255,.45);
    margin-top: 8px;
    line-height: 1.6;
}
.card-footer i { margin-right: 4px; opacity: .7; }

.night-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    font-size: .75rem;
    color: rgba(255,255,255,.55);
}

@media (prefers-reduced-motion: reduce) {
    body.login-page, body.login-page::before, .stars span, .login-card { animation: none; }
}

@media (max-width: 480px) {
    .login-card { padding: 36px 24px 28px; }
    .card-title { font-size: 1.6rem; margin-bottom: 24px; }
}

/* Bilgisayar kilitliyken (çok fazla hatalı deneme): açık krem cam panel + koyu kahve yazı (arka plan sarı da olsa,
   lacivert de olsa okunur) + büyük geri sayım; alanlar soluk ve kapalı */
.login-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.login-fields:disabled { opacity: .4; pointer-events: none; }
.lock-panel {
    display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 251, 235, .92); border: 1.5px solid rgba(217, 119, 6, .7);
    box-shadow: 0 14px 34px -16px rgba(120, 53, 15, .55), inset 0 1px 0 #fff; color: #451a03;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lock-ico {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem;
    color: #fff; background: #d97706; box-shadow: 0 0 0 5px rgba(217, 119, 6, .2);
}
.lock-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .86rem; line-height: 1.35; }
.lock-text b { font-size: .95rem; color: #78350f; }
.lock-text span { color: #57300c; }
.lock-time { margin-top: 4px; font-size: 1rem; font-weight: 700; }
.lock-time time { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #b45309; margin-left: 4px; }
.lock-hint { font-size: .76rem; color: #78501f !important; }