/* /Gate/In login ekrani — sade bolunmus duzen: solda form paneli, sagda gorsel.
   Global tema (Metronic) input/buton stillerini ezdigi icin bazi kurallar !important tasir. */

.lg-stage, .lg-stage * { box-sizing: border-box; }

.lg-stage {
    --ink: #0f1b2d;
    --muted: #5b6b80;
    --line: #dde3ea;
    --surface: #ffffff;
    --soft: #f5f7fa;
    --brand: #0b2a4a;
    --brand-hover: #12395f;
    --accent: #17c4e8;
    --ring: rgba(23, 196, 232, .28);
    --danger: #c62f45;
    --danger-bg: #fdf1f3;

    position: fixed; inset: 0; z-index: 1000;
    display: grid; grid-template-columns: minmax(420px, 520px) 1fr;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---- Form paneli ---- */
.lg-panel {
    display: flex; flex-direction: column;
    padding: 40px 56px 28px;
    overflow-y: auto;
    background: var(--surface);
}

.lg-inner {
    width: 100%; max-width: 360px;
    margin: auto 0;
    animation: lg-in .45s cubic-bezier(.2, .8, .25, 1) both;
}

@keyframes lg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lg-logolink { display: inline-block; margin-bottom: 44px; }
.lg-logo { height: 36px; width: auto; display: block; }

.lg-eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    color: var(--muted);
}

.lg-h { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.lg-p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; }

/* ---- Alanlar ---- */
.lg-field { margin-bottom: 18px; }

.lg-stage label {
    display: block; margin: 0 0 7px;
    font-size: 13px; font-weight: 600; color: var(--ink);
}

.lg-labelrow { display: flex; align-items: baseline; justify-content: space-between; }

.lg-field input {
    display: block; width: 100%; height: 46px;
    padding: 0 14px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    font-size: 15px; font-weight: 500;
    box-shadow: 0 1px 2px rgba(15, 27, 45, .04);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lg-field input::placeholder { color: #9aa7b6; font-weight: 400; }
.lg-field input:hover { border-color: #c5cfda !important; }
.lg-field input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--ring); }
.lg-field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #f2fbfe inset; }

.lg-pass { position: relative; }
.lg-pass input { padding-right: 46px !important; }

.lg-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 0; background: none; padding: 0;
    border-radius: 8px !important;
    color: #8593a5; cursor: pointer;
}
.lg-toggle:hover { color: var(--ink); background: var(--soft); }
.lg-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.lg-toggle svg { width: 19px; height: 19px; }
.lg-toggle .lg-eye-off, .lg-toggle.is-on .lg-eye { display: none; }
.lg-toggle.is-on .lg-eye-off { display: block; }

.lg-caps { margin-top: 7px; font-size: 12px; font-weight: 500; color: #9a6a00; }
.lg-caps[hidden] { display: none; }

.lg-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; cursor: pointer; }
.lg-link:hover, .lg-link:focus { color: #0a8fb0; text-decoration: none; }

/* ---- Beni hatirla ---- */
.lg-stage .lg-rem {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 2px 0 24px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--ink);
}
.lg-rem input {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px; margin: 0; flex: none;
    border: 1.5px solid #b7c2cf !important;
    border-radius: 5px !important;
    background: var(--surface); cursor: pointer; position: relative;
    transition: background .15s ease, border-color .15s ease;
}
.lg-rem input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.lg-rem input:checked { background: var(--brand); border-color: var(--brand) !important; }
.lg-rem input:checked::after {
    content: ""; position: absolute; left: 5px; top: 1.5px;
    width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---- Butonlar ---- */
.lg-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 46px;
    border: 0; border-radius: 10px !important;
    background: var(--brand); color: #fff;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(11, 42, 74, .2), 0 6px 16px -6px rgba(11, 42, 74, .45);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lg-btn:hover { background: var(--brand-hover); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.lg-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50% !important;
    animation: lg-spin .7s linear infinite;
}
.lg-btn.is-loading { pointer-events: none; opacity: .9; }
.lg-btn.is-loading .lg-spinner { display: inline-block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px; padding: 6px 4px;
    border: 0; background: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--muted);
}
.lg-back:hover { color: var(--ink); }
.lg-back svg { width: 16px; height: 16px; }

/* ---- Hata kutusu ---- */
.lg-alert {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 22px; padding: 12px 14px;
    border: 1px solid #f4c7cf; border-radius: 10px !important;
    background: var(--danger-bg); color: var(--danger);
    font-size: 13.5px; font-weight: 500; line-height: 1.45;
}
.lg-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* 3. taraf oturum acma gizli (onceki davranis) */
.lg-oidc { display: none; }

/* ---- Alt bilgi ---- */
.lg-foot {
    margin-top: 32px;
    font-size: 12px; color: #8a97a7; letter-spacing: .02em;
}

/* ---- Gorsel panel ---- */
.lg-visual {
    position: relative; overflow: hidden;
    background: #0b2a4a url(/assets/img/background/bg1.jpg) center / cover no-repeat;
}
.lg-visual::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 31, 56, .25) 0%, rgba(8, 31, 56, .55) 55%, rgba(6, 24, 44, .88) 100%);
}
.lg-visual__text {
    position: absolute; left: 56px; right: 56px; bottom: 56px;
    color: #fff; max-width: 460px;
}
.lg-visual__mark {
    display: block; width: 36px; height: 3px; margin-bottom: 18px;
    background: var(--accent); border-radius: 2px !important;
}
.lg-visual__text p {
    margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em;
}

/* ---- Duyarli ---- */
@media (max-width: 900px) {
    .lg-stage { grid-template-columns: 1fr; }
    .lg-visual { display: none; }
    .lg-panel { padding: 32px 24px 24px; align-items: center; }
    .lg-inner { margin: auto; }
    .lg-foot { text-align: center; }
}

@media (max-width: 480px) {
    .lg-panel { padding: 28px 16px 20px; }
    .lg-logolink { margin-bottom: 32px; }
    .lg-h { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-inner { animation: none; }
    .lg-spinner { animation-duration: 1.6s; }
}
