/* ============================================================
   Giriş sayfası — ortalanmış çift panelli kart
   ------------------------------------------------------------
   Fotoğraf YOK: eski `background.png` 2,9 MB idi ve sistemin ilk
   açılan sayfasını yavaşlatıyordu. Yerine 0 bayt CSS gradyan.
   Logo: `logo_login_352.webp` — kaynağı SAYDAM
   `logo_alternative_without_background.png`; 1024px/155 KB orijinal 352px'e
   indirildi (gösterim 176 px = 2x retina), PNG yedeği yanında.
   Marka renkleri logodan: lacivert #200080 · kırmızı #E00000
   ============================================================ */

.lg-sahne {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;          /* kart TAM ORTADA */
    gap: 1rem;
    padding: 1.5rem;
    background:
        radial-gradient(1100px 700px at 12% 8%, rgba(255, 255, 255, 0.10), transparent 60%),
        radial-gradient(900px 600px at 88% 92%, rgba(224, 0, 0, 0.16), transparent 60%),
        linear-gradient(135deg, #0d1642 0%, #17205c 42%, #1f3a8a 72%, #1976d2 100%);
    position: relative;
    overflow: hidden;
}

/* İnce ızgara dokusu — kurumsal his, 0 bayt */
.lg-sahne::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

/* ── Kart ─────────────────────────────────────────────────── */
.lg-kart {
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1fr;   /* logo büyüdü, marka paneline pay */
    width: 100%;
    max-width: 880px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(4, 10, 40, 0.45), 0 2px 8px rgba(4, 10, 40, 0.25);
    animation: lg-gir 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lg-gir {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

/* ── Marka paneli (sol) ───────────────────────────────────── */
.lg-marka {
    padding: 2.5rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, 0.12), transparent 65%),
        linear-gradient(160deg, #200080 0%, #1a2270 48%, #14306e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.15rem;
    position: relative;
}

/* Logonun kırmızısını yankılayan ince aksan şeridi */
.lg-marka::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, transparent, #e00000 45%, transparent);
    opacity: 0.75;
}

/* Logo SAYDAM sürüm (`_without_background`): dairenin dışı gerçekten şeffaf,
   bu yüzden CSS ile daire kırpmaya ve beyaz çipe gerek YOK. Derinlik için
   yalnızca gölge. */
.lg-logo-cip {
    width: 176px;
    height: 176px;
    flex: 0 0 auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42));
}

.lg-logo-cip img,
.lg-logo-cip picture {
    display: block;
    width: 176px;
    height: 176px;
}

.lg-marka-ad {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lg-marka-alt {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.lg-marka-ayrac {
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: #e00000;
    opacity: 0.9;
}

/* ── Form paneli (sağ) ────────────────────────────────────── */
.lg-form-panel {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lg-baslik {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.lg-alt-baslik {
    margin: 0 0 1.5rem;
    font-size: 0.86rem;
    color: #64748b;
}

.lg-form-panel .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.lg-form-panel .form-control {
    border-color: #cbd5e1;
    padding: 0.62rem 0.85rem;
    font-size: 0.95rem;
}

.lg-form-panel .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.2);
}

/* Şifre alanı + göster/gizle */
.lg-sifre-sarmal { position: relative; }
.lg-sifre-sarmal .form-control { padding-right: 2.75rem; }

.lg-goz {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0.35rem 0.5rem;
    color: #94a3b8;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.lg-goz:hover { color: #475569; }
.lg-goz:focus-visible { outline: 2px solid #1976d2; outline-offset: 1px; }
.lg-goz svg { display: block; width: 18px; height: 18px; }

/* Caps Lock uyarısı */
.lg-capslock {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Giriş butonu */
.lg-btn {
    background: linear-gradient(135deg, #1f3a8a, #1976d2);
    border: 0;
    color: #fff;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.lg-btn:hover:not(:disabled) { filter: brightness(1.08); }
.lg-btn:active:not(:disabled) { transform: translateY(1px); }
.lg-btn:disabled { opacity: 0.75; cursor: progress; }
.lg-btn:focus-visible { outline: 3px solid rgba(25, 118, 210, 0.45); outline-offset: 2px; }

/* Hata kutusu */
.lg-hata {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.86rem;
    margin-bottom: 1.1rem;
    animation: lg-sarsinti 0.35s ease both;
}

@keyframes lg-sarsinti {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    45% { transform: translateX(5px); }
    70% { transform: translateX(-3px); }
}

/* Kilit durumu farklı renk — hatalı şifreden ayırt edilsin */
.lg-hata.lg-kilit {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* Sürüm */
.lg-surum {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
}

/* ── Dar ekran: tek kolon, marka paneli üstte kompakt ─────── */
@media (max-width: 767.98px) {
    .lg-kart { grid-template-columns: 1fr; max-width: 460px; }
    .lg-marka {
        flex-direction: row;
        text-align: left;
        padding: 1.35rem 1.5rem;
        gap: 0.9rem;
    }
    .lg-marka::after {
        right: 12%;
        left: 12%;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, transparent, #e00000 45%, transparent);
    }
    .lg-logo-cip { width: 76px; height: 76px; }
    .lg-logo-cip img, .lg-logo-cip picture { width: 76px; height: 76px; }
    .lg-marka-ad { font-size: 1.12rem; }
    .lg-marka-alt { font-size: 0.8rem; }
    .lg-marka-ayrac { display: none; }
    .lg-form-panel { padding: 1.75rem 1.5rem 2rem; }
}

/* ── Hareket azaltma tercihi ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lg-kart, .lg-hata { animation: none; }
    .lg-btn { transition: none; }
}
