/* ═══════════════════════════════════════════════
   Login — Ortada modern kart (glassmorphism)
   ═══════════════════════════════════════════════ */

.lg-scene,
.lg-scene input,
.lg-scene button,
.lg-scene a,
.lg-scene label,
.lg-scene h1,
.lg-scene h2,
.lg-scene p,
.lg-scene span {
    font-family: 'Source Sans 3', sans-serif;
}

.lg-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 12% 18%, rgba(91,155,213,.28), transparent 55%),
        radial-gradient(900px 600px at 88% 85%, rgba(74,137,196,.24), transparent 55%),
        radial-gradient(700px 500px at 75% 12%, rgba(129,178,220,.20), transparent 50%),
        linear-gradient(150deg, #eef4fb 0%, #dbe7f5 45%, #cfe0f2 100%);
}

/* yumuşak yüzen dekor daireler */
.lg-scene::before,
.lg-scene::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    pointer-events: none;
}
.lg-scene::before {
    width: 340px; height: 340px;
    top: -90px; left: -90px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(91,155,213,.15));
}
.lg-scene::after {
    width: 420px; height: 420px;
    bottom: -140px; right: -120px;
    background: radial-gradient(circle at 70% 70%, rgba(255,255,255,.55), rgba(74,137,196,.14));
}

/* ═══ Kart ═══ */
.lg-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 22px;
    box-shadow:
        0 24px 70px rgba(30,64,110,.20),
        inset 0 1px 0 rgba(255,255,255,.7);
    padding: 44px 52px 38px;
}

/* Logo */
.lg-logo {
    text-align: center;
    margin-bottom: 22px;
}
.lg-logo img {
    max-width: 100%;
    height: auto !important;
    max-height: 52px;
    width: auto;
    display: inline-block;
}

.lg-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a3a5c;
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.01em;
}

.lg-sub {
    font-size: 0.86rem;
    color: #7b92a8;
    margin-bottom: 26px;
    text-align: center;
}

/* Geniş kart (Register gibi uzun formlar) */
.lg-card.lg-wide { max-width: 680px; }

/* 2 kolonlu alan gridi */
.lg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 560px) {
    .lg-grid-2 { grid-template-columns: 1fr; }
}

/* Fields */
.lg-field { margin-bottom: 16px; }

.lg-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

.lg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lg-input-wrap > .lg-input-ic {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.02rem;
    pointer-events: none;
}

.lg-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid rgba(226,232,240,.9);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #1e293b;
    background: rgba(255,255,255,.85);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.lg-input:focus {
    outline: none;
    border-color: #5b9bd5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91,155,213,.16);
}

.lg-input::placeholder { color: #aebccb; }

.lg-pass-toggle {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    transition: color .15s;
}
.lg-pass-toggle:hover { color: #5b9bd5; }

.lg-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.lg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.lg-check input { width: 16px; height: 16px; accent-color: #5b9bd5; cursor: pointer; }

.lg-forgot {
    font-size: 0.83rem;
    color: #4a89c4;
    text-decoration: none;
    font-weight: 600;
}
.lg-forgot:hover { text-decoration: underline; color: #3a6ea5; }

.lg-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a89c4 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(74,137,196,.30);
}
.lg-submit:hover { box-shadow: 0 12px 28px rgba(74,137,196,.42); }
.lg-submit:active { transform: translateY(1px); }

.lg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #a9b8c8;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lg-divider::before,
.lg-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148,163,184,.3);
}

.lg-register {
    text-align: center;
    font-size: 0.86rem;
    color: #64748b;
}
.lg-register a {
    color: #4a89c4;
    font-weight: 700;
    text-decoration: none;
}
.lg-register a:hover { text-decoration: underline; }

.lg-version {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #b4c4d4;
    margin-top: 14px;
}

.lg-alert {
    background: rgba(220,38,38,.09);
    border-left: 3px solid #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #991b1b;
    margin-bottom: 18px;
}

.lg-resend {
    background: none;
    border: none;
    color: #4a89c4;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 12px;
}

/* ═══ Giriş loader overlay ═══ */
#lgLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 34, 54, 0.30);
}
#lgLoader.active { display: flex; animation: lg-fade .2s ease-out; }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }

.lg-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #fff;
    padding: 30px 42px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
    animation: lg-pop .28s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes lg-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lg-orbit { position: relative; width: 52px; height: 52px; }
.lg-orbit span {
    position: absolute;
    top: 0; left: 50%;
    width: 11px; height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    transform-origin: 5.5px 26px;
    animation: lg-orbit-spin 1.1s cubic-bezier(.6, 0, .4, 1) infinite;
}
.lg-orbit span:nth-child(1) { animation-delay: 0s;    background: #5b9bd5; }
.lg-orbit span:nth-child(2) { animation-delay: -.14s; background: #74add8; opacity: .85; }
.lg-orbit span:nth-child(3) { animation-delay: -.28s; background: #8fc0e2; opacity: .7; }
.lg-orbit span:nth-child(4) { animation-delay: -.42s; background: #a9d0eb; opacity: .55; }
@keyframes lg-orbit-spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(.6); }
    100% { transform: rotate(360deg) scale(1); }
}

.lg-loader-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #3d5871;
    letter-spacing: 0.03em;
}
.lg-loader-text::after {
    content: "";
    display: inline-block;
    width: 1.4em;
    text-align: left;
    animation: lg-dots 1.4s steps(4, end) infinite;
}
@keyframes lg-dots {
    0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } 100% { content: ""; }
}
