/*!
 * NosoniTrack — Giriş ekranları (_AuthLayout): Giriş, Şifremi unuttum, Şifre değiştir, Çıkış, Erişim reddedildi, Hata.
 * Yalnız .nk-auth* / .nt-auth* / .nk-error* sınıfları; renkler kit tokenlarından (--nk-*, --bs-*) — açık/koyu tema + telefon.
 * Not: 1rem = 13px (Metronic kök boyutu).
 */

/* ── İskelet: solda form, sağda marka paneli (≥992px) ──────────────────────────────── */
.nk-auth {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--nk-surface);
    color: var(--nk-text);
}

.nk-auth-main {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 2.5rem 1.5rem;
}

.nk-auth-panel { width: 100%; max-width: 32.5rem; }

.nk-auth-art {
    display: none;
    flex: 1 1 50%;
    min-width: 0;
    padding: 1rem;
}

@media (min-width: 992px) {
    .nk-auth-art { display: block; }
    .nk-auth-main { padding: 3rem 2.5rem; }
}

/* Marka paneli: koyu lacivert degrade + akış çizimi (görsel dosyası yok) */
.nt-auth-art-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    min-height: 34rem;
    padding: 3rem 3rem 2.5rem;
    overflow: hidden;
    border-radius: var(--nk-radius-xl);
    color: #fff;
    background:
        radial-gradient(60rem 30rem at 110% -10%, rgba(127, 211, 255, .28), transparent 60%),
        radial-gradient(40rem 26rem at -20% 120%, rgba(255, 210, 127, .16), transparent 60%),
        linear-gradient(150deg, #0E4D92 0%, #0B3A72 55%, #08294F 100%);
    box-shadow: var(--nk-shadow-sm);
}

.nt-auth-art-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    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: 2.5rem 2.5rem;
    mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
    pointer-events: none;
}

.nt-auth-art-copy { position: relative; z-index: 1; max-width: 36rem; }

/* Koyu zemin logosu (baykuş + nosoni + TRACK) */
.nt-auth-brand { display: block; width: auto; height: 3.6rem; margin-bottom: 1.6rem; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }

.nt-auth-headline {
    margin: 0 0 .9rem;
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 1.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
}

.nt-auth-lead { margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.15rem; line-height: 1.6; }

.nt-auth-points {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .9);
    font-weight: var(--nk-fw-medium);
}

.nt-auth-points li { display: inline-flex; align-items: center; gap: .5rem; }
.nt-auth-points i { color: #FFD27F; font-size: 1.45rem; }

/* ── Logo + başlık ─────────────────────────────────────────────────────────────────── */
.nk-auth-logo {
    display: table;
    margin: 0 auto 1.75rem;
    border-radius: var(--nk-radius-sm);
}

.nk-auth-logo img { display: block; max-width: 21rem; max-height: 4.5rem; object-fit: contain; }
.nk-auth-logo:focus-visible { outline: none; box-shadow: var(--nk-focus-ring); }

[data-bs-theme="dark"] .nk-auth-logo { padding: .5rem .85rem; background: var(--nk-logo-plate); }

.nk-auth-head { margin-bottom: 1.75rem; text-align: center; }
.nk-auth-title { margin: 0; color: var(--nk-text); letter-spacing: -.01em; }
.nk-auth-title:focus { outline: none; }
.nk-auth-sub { margin: .5rem 0 0; color: var(--nk-text-muted); font-size: var(--nk-fs-base, 1rem); }

/* ── Form ──────────────────────────────────────────────────────────────────────────── */
.nk-auth-alert { margin-bottom: 1.5rem; }
.nk-auth-alert .nk-notice-icon i { font-size: 1.75rem; }
.nk-auth-alert .nk-notice-text:empty { display: none; }

.nk-auth-form .nk-field { margin-bottom: 1.35rem; }
.nk-auth-form[hidden] { display: none; }

.nk-auth-pass { position: relative; }
.nk-auth-pass > .form-control { padding-right: 3.5rem; }

.nk-auth-reveal {
    position: absolute;
    top: 50%;
    right: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: var(--nk-radius-sm);
    background: transparent;
    color: var(--nk-text-muted);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color var(--nk-dur-fast) ease, color var(--nk-dur-fast) ease;
}

.nk-auth-reveal i { color: inherit; font-size: 1.55rem; line-height: 1; }
.nk-auth-reveal:hover { background: var(--nk-surface-hover); color: var(--nk-text); }
.nk-auth-reveal:focus-visible { outline: none; box-shadow: var(--nk-focus-ring); color: var(--nk-text); }
.nk-auth-reveal:disabled { opacity: .5; cursor: default; }
.nk-auth-reveal[aria-pressed="true"] { color: var(--nk-primary-text); }
.nk-auth-pass > .form-control.is-invalid { background-image: none; }

.nk-auth-caps {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .45rem;
    color: var(--bs-warning-text-emphasis, var(--bs-warning));
    font-weight: var(--nk-fw-semibold);
}

.nk-auth-caps[hidden] { display: none; }
.nk-auth-caps i { color: inherit; font-size: 1.1rem; }
.nk-auth-form .btn-lg { margin-top: .5rem; }

.nk-auth-resume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    border-radius: var(--nk-radius);
    background: var(--nk-primary-soft);
    color: var(--nk-primary-text);
    font-weight: var(--nk-fw-semibold);
}

.nk-auth-resume[hidden] { display: none; }

/* Doğrulama kodu: geniş aralıklı rakamlar */
.nt-code-input {
    font-family: var(--nk-font-mono, monospace);
    font-size: 1.6rem !important;
    font-weight: 700;
    letter-spacing: .5em;
    text-align: center;
}

/* Şifre politikası listesi */
.nt-policy {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--nk-text-muted);
    font-size: .925rem;
}

.nt-policy li { display: inline-flex; align-items: center; gap: .3rem; }
.nt-policy li i { color: var(--nk-text-subtle); font-size: 1.1rem; }
.nt-policy li.is-ok { color: var(--bs-success-text-emphasis, var(--bs-success)); }
.nt-policy li.is-ok i { color: var(--bs-success); }

/* Adım çizgisi (şifremi unuttum) */
.nt-stepline {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin: -.5rem 0 1.75rem;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.nt-stepline li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .7rem .3rem .3rem;
    border-radius: var(--nk-radius-pill);
    background: var(--nk-surface-subtle);
    color: var(--nk-text-muted);
    font-size: .925rem;
    font-weight: var(--nk-fw-semibold);
}

.nt-stepline-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--nk-surface);
    font-size: .85rem;
}

.nt-stepline li.is-current { background: var(--nk-primary-soft); color: var(--nk-primary-text); }
.nt-stepline li.is-current .nt-stepline-n { background: var(--nk-primary-fill); color: var(--nk-on-primary, #fff); }
.nt-stepline li.is-done { color: var(--bs-success-text-emphasis, var(--bs-success)); }

@media (max-width: 575.98px) {
    .nt-stepline li span:not(.nt-stepline-n) { display: none; }
    .nt-stepline li { padding-right: .3rem; }
}

.nt-forgot-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-top: 1.25rem;
}

/* ── Alt bilgi ─────────────────────────────────────────────────────────────────────── */
.nk-auth-foot {
    margin-top: 2.5rem;
    color: var(--nk-text-subtle);
    font-size: .925rem;
    text-align: center;
}

/* ── Kart düzeni ───────────────────────────────────────────────────────────────────── */
.nk-auth--center {
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: var(--nk-surface-subtle);
}

html:not([data-bs-theme="dark"]) .nk-auth--center { background: #f4f6fa; }

.nk-auth-card {
    width: 100%;
    max-width: 36rem;
    padding: 2.5rem 2.25rem;
    border: 1px solid var(--nk-border);
    border-radius: var(--nk-radius-lg);
    background: var(--nk-surface);
    box-shadow: var(--nk-shadow-sm);
}

.nk-auth-card .nk-auth-logo { margin-bottom: 1.5rem; }
.nk-auth-card .nk-auth-logo img { max-height: 3.75rem; }

.nk-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.nk-auth-back { display: block; margin-top: 1.25rem; text-align: center; }
.nk-auth-back[hidden] { display: none; }

/* Hata / erişim ikonu */
.nk-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.25rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--bs-danger) 12%, transparent);
    color: var(--bs-danger);
}

.nk-error-icon i { color: inherit; font-size: 2.4rem; }
.nk-error-icon.nt-error-icon--warning { background: color-mix(in srgb, var(--bs-warning) 16%, transparent); color: var(--bs-warning-text-emphasis, var(--bs-warning)); }

.nk-error-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .6rem;
    margin-top: 1.5rem;
    padding: .75rem 1rem;
    border: 1px dashed var(--nk-border-strong);
    border-radius: var(--nk-radius);
    color: var(--nk-text-muted);
    font-size: .925rem;
}

.nk-error-ref code { padding: 0; background: none; color: var(--nk-text); font-size: .925rem; word-break: break-all; }

/* ── Telefon ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .nk-auth-main { align-items: flex-start; padding: 2rem 1.15rem 1.5rem; }
    .nk-auth-logo { margin-bottom: 1.35rem; }
    .nk-auth-logo img { max-width: 12rem; max-height: 3.75rem; }
    .nk-auth-head { margin-bottom: 1.35rem; }
    .nk-auth--center { align-items: flex-start; padding: 1rem .75rem; }
    .nk-auth-card { padding: 1.75rem 1.25rem; border-radius: var(--nk-radius); }
}

@media print {
    .nk-auth-art { display: none !important; }
}
