﻿/* ==========================================================================
   NmSoft ERP - giriş / kilit ekranı ortak tasarımı (Login/Index, Erp/LockScreen)
   Bootstrap yalnız ikon + modal için yüklenir; yerleşim bu dosyadadır.
   ========================================================================== */
:root {
    --nk-indigo:#4f46e5; --nk-indigo-600:#4338ca; --nk-violet:#7c3aed;
    --nk-ink:#0f172a; --nk-muted:#64748b; --nk-bg:#eef1f8;
    --nk-card:#ffffff; --nk-border:#e2e8f0;
}
* { box-sizing:border-box; }
html,body { margin:0; padding:0; height:100%; }
body {
    background:var(--nk-bg);
    font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    color:var(--nk-ink); -webkit-font-smoothing:antialiased;
}

.nk-auth { position:fixed; inset:0; display:grid; grid-template-columns:1.05fr .95fr; }

/* ---- Marka / kapak paneli ---- */
.nk-auth__brand {
    position:relative; overflow:hidden; color:#fff;
    display:flex; flex-direction:column; justify-content:space-between; padding:56px 60px;
    background:radial-gradient(120% 120% at 0% 0%, #6366f1 0%, #4f46e5 42%, #4338ca 72%, #3730a3 100%);
}
.nk-auth__brand::after {
    content:""; position:absolute; inset:0; z-index:1; opacity:.5;
    background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size:38px 38px; mask-image:radial-gradient(80% 80% at 30% 20%, #000 40%, transparent 100%);
}
.nk-auth__brand-inner { position:relative; z-index:3; display:flex; flex-direction:column; height:100%; gap:40px; }
.nk-brand-logo { display:flex; align-items:center; gap:14px; }
.nk-brand-mark {
    width:48px; height:48px; border-radius:14px; display:grid; place-items:center;
    font-weight:800; font-size:22px; background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.28); box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.nk-brand-name { font-size:20px; font-weight:600; letter-spacing:.2px; }
.nk-brand-name b { font-weight:800; }
.nk-auth__hero { margin:auto 0; max-width:460px; }
.nk-auth__hero h1 { font-size:38px; line-height:1.15; font-weight:800; margin:0 0 16px; letter-spacing:-.6px; }
.nk-auth__hero > p { font-size:15.5px; line-height:1.65; color:rgba(255,255,255,.82); margin:0 0 34px; }
.nk-feats { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:16px; }
.nk-feats li { display:flex; align-items:center; gap:14px; }
.nk-feats i {
    width:46px; height:46px; flex:none; border-radius:13px; display:grid; place-items:center; font-size:21px;
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
}
.nk-feats strong { display:block; font-size:14.5px; font-weight:700; }
.nk-feats span { display:block; font-size:12.5px; color:rgba(255,255,255,.72); }
.nk-auth__foot { font-size:12.5px; color:rgba(255,255,255,.62); position:relative; z-index:3; }
.nk-blob { position:absolute; border-radius:50%; filter:blur(70px); z-index:2; }
.nk-blob--1 { width:360px; height:360px; background:#8b5cf6; top:-90px; right:-70px; opacity:.55; }
.nk-blob--2 { width:300px; height:300px; background:#22d3ee; bottom:-90px; left:-50px; opacity:.30; }
.nk-blob--3 { width:220px; height:220px; background:#ec4899; top:42%; right:18%; opacity:.22; }

/* ---- Form paneli ---- */
.nk-auth__form { display:flex; align-items:center; justify-content:center; padding:40px; }
.nk-card {
    width:100%; max-width:412px; background:var(--nk-card); border:1px solid var(--nk-border);
    border-radius:22px; padding:44px 40px;
    box-shadow:0 30px 60px -22px rgba(30,41,59,.28), 0 8px 20px -14px rgba(30,41,59,.16);
}
.nk-card__head { margin-bottom:26px; }
.nk-card__head h2 { font-size:26px; font-weight:800; margin:0 0 6px; letter-spacing:-.4px; }
.nk-card__head p { font-size:14px; color:var(--nk-muted); margin:0; }
.nk-field { margin-bottom:18px; }
.nk-field > label, .nk-field__row label { font-size:13px; font-weight:600; color:#334155; margin-bottom:7px; display:block; }
.nk-field__row { display:flex; justify-content:space-between; align-items:center; }
.nk-link { font-size:12.5px; color:var(--nk-indigo); text-decoration:none; font-weight:600; }
.nk-link:hover { text-decoration:underline; }
.nk-input { position:relative; display:flex; align-items:center; }
.nk-input > i { position:absolute; left:15px; font-size:18px; color:#94a3b8; pointer-events:none; }
.nk-input input {
    width:100%; height:50px; border:1.5px solid var(--nk-border); border-radius:13px;
    padding:0 46px; font-size:14.5px; color:var(--nk-ink); background:#f8fafc;
    transition:border-color .15s, box-shadow .15s, background .15s; outline:none;
}
.nk-input input::placeholder { color:#a3adbb; }
.nk-input input:focus { border-color:var(--nk-indigo); background:#fff; box-shadow:0 0 0 4px rgba(79,70,229,.12); }
.nk-eye { position:absolute; right:12px; color:#94a3b8; font-size:18px; display:grid; place-items:center; width:28px; height:28px; text-decoration:none; }
.nk-eye:hover { color:var(--nk-indigo); }
.nk-check { display:flex; align-items:center; gap:9px; font-size:13.5px; color:#475569; margin:4px 0 24px; cursor:pointer; user-select:none; }
.nk-check input { width:17px; height:17px; accent-color:var(--nk-indigo); cursor:pointer; }
.nk-btn {
    display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px;
    border:none; border-radius:13px; cursor:pointer; font-size:15px; font-weight:700; color:#fff;
    text-decoration:none; letter-spacing:.2px;
    background:linear-gradient(135deg,#6366f1,#4f46e5 55%,#7c3aed);
    box-shadow:0 12px 26px -8px rgba(79,70,229,.6); transition:transform .12s, box-shadow .12s, filter .12s;
}
.nk-btn:hover { filter:brightness(1.06); box-shadow:0 16px 32px -8px rgba(79,70,229,.72); transform:translateY(-1px); color:#fff; }
.nk-btn:active { transform:translateY(0); }
.nk-btn i { font-size:19px; transition:transform .15s; }
.nk-btn:hover i { transform:translateX(3px); }
.nk-help { text-align:center; font-size:13px; color:var(--nk-muted); margin-top:22px; }
.nk-help a { color:var(--nk-indigo); text-decoration:none; font-weight:600; }

@media (max-width:992px) {
    .nk-auth { grid-template-columns:1fr; }
    .nk-auth__brand { display:none; }
    .nk-auth__form { background:linear-gradient(160deg,#eef1f8,#e6e9f5); }
}

/* ---- Kilit ekranı ---- */
.nk-lock-user { display:flex; align-items:center; gap:14px; padding:14px 16px; margin-bottom:22px;
    border:1px solid var(--nk-border); border-radius:16px; background:#f8fafc; }
.nk-lock-avatar { width:52px; height:52px; flex:none; border-radius:50%; display:grid; place-items:center;
    font-size:20px; font-weight:800; color:#fff; letter-spacing:.5px;
    background:linear-gradient(135deg,#6366f1,#4f46e5 55%,#7c3aed); box-shadow:0 8px 18px -8px rgba(79,70,229,.7); }
.nk-lock-user > div > strong { display:block; font-size:15px; font-weight:700; color:var(--nk-ink); line-height:1.25; }
.nk-lock-user > div > span { display:block; font-size:12.5px; color:var(--nk-muted); }
.nk-lock-badge { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-size:26px;
    color:var(--nk-indigo); background:rgba(79,70,229,.10); margin-bottom:18px; }
.nk-btn-ghost { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:46px; margin-top:12px;
    border:1.5px solid var(--nk-border); border-radius:13px; background:#fff; color:#475569; font-size:14px; font-weight:600;
    cursor:pointer; text-decoration:none; transition:border-color .15s, color .15s; }
.nk-btn-ghost:hover { border-color:#f87171; color:#dc2626; }
button.nk-btn { font-family:inherit; }

/* globalController.js loadingShow/loadingHide (#preloader) */
#preloader { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; background:rgba(15,23,42,.35);
    opacity:0; visibility:hidden; transition:opacity .15s; }
.nk-spinner { width:42px; height:42px; border-radius:50%; border:4px solid rgba(255,255,255,.35); border-top-color:#fff;
    animation:nk-spin .8s linear infinite; }
@keyframes nk-spin { to { transform:rotate(360deg); } }
