/* Netpilot CRM — Auth Portal (NETPİLOT brand: navy #2b3a66 + orange #ec741a) */

:root {
    --hn-navy-950: #131c38;
    --hn-navy-900: #1a2547;
    --hn-navy-800: #22345f;
    --hn-navy-700: #2b3a66;
    --hn-navy-600: #3a4d7f;
    --hn-orange: #ec741a;
    --hn-orange-bright: #ff6d00;
    --hn-orange-deep: #d25f0f;
    --hn-blue: #1d4ed8;
    --hn-blue-bright: #3b82f6;
    --hn-blue-deep: #1e40af;
    --hn-blue-soft: #eef3fb;
    --hn-muted-on-dark: #a5b7d2;
    --hn-bg-light: #f5f8fa;
    --hn-bg-blue: #f0f6ff;
    --hn-border-light: #dde5ef;
    --hn-text: #2b3a66;
    --hn-text-soft: #5c6a8b;
    --hn-text-faint: #8b99b5;
    --np-radius: 16px;
    --np-radius-sm: 12px;
    --np-input-h: 50px;
    --np-btn-h: 52px;
    --np-font: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --np-display: 'Manrope', 'Inter', sans-serif;
    --np-safe-top: env(safe-area-inset-top, 0px);
    --np-safe-bottom: env(safe-area-inset-bottom, 0px);
    --np-safe-left: env(safe-area-inset-left, 0px);
    --np-safe-right: env(safe-area-inset-right, 0px);
    --np-shell-max: 1280px;
    --np-gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    min-height: 100%;
    background: var(--hn-navy-950);
}

body.np-auth {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--np-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--hn-text);
    background: var(--hn-navy-950);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Ambient background (behind hero) ── */
.np-auth__ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 15% 0%, rgba(29, 78, 216, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 45% at 80% 100%, rgba(59, 130, 246, 0.14), transparent 55%),
        linear-gradient(160deg, var(--hn-navy-900) 0%, var(--hn-navy-950) 60%, #0e1530 100%);
}

.np-auth__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    animation: np-float 22s ease-in-out infinite alternate;
}

.np-auth__orb--1 {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    top: -18%;
    right: 30%;
    background: rgba(58, 77, 127, 0.55);
}

.np-auth__orb--2 {
    width: min(380px, 55vw);
    height: min(380px, 55vw);
    bottom: -14%;
    left: -8%;
    background: rgba(59, 130, 246, 0.25);
    animation-delay: -9s;
}

.np-auth__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(165, 183, 210, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 183, 210, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 75%);
}

@keyframes np-float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(24px, -18px) scale(1.06); }
}

/* ── Shell layout ── */
.np-auth__shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding:
        max(12px, var(--np-safe-top))
        max(var(--np-gutter), var(--np-safe-right))
        max(8px, var(--np-safe-bottom))
        max(var(--np-gutter), var(--np-safe-left));
}

.np-auth__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--np-shell-max);
    margin: 0 auto;
}

.np-auth__card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: calc(var(--np-radius) + 6px);
    border: 1px solid rgba(165, 183, 210, 0.16);
    background: var(--hn-navy-900);
    box-shadow: 0 32px 80px -20px rgba(7, 12, 28, 0.8);
    overflow: hidden;
    animation: np-rise 0.5s ease both;
}

.np-auth__card::before {
    content: "";
    grid-column: 1 / -1;
    height: 3px;
    background: linear-gradient(90deg, var(--hn-blue-deep) 0%, var(--hn-blue-bright) 55%, var(--hn-orange) 82%, var(--hn-orange-bright) 100%);
}

@keyframes np-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero / brand panel (dark navy + orange accents) ── */
.np-auth__hero {
    position: relative;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 44px);
    background: linear-gradient(150deg, var(--hn-navy-800) 0%, var(--hn-navy-900) 55%, var(--hn-navy-950) 100%);
    overflow: hidden;
}

.np-auth__hero::before {
    content: "";
    position: absolute;
    top: -35%;
    right: -18%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    pointer-events: none;
}

.np-auth__hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -12%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 116, 26, 0.1), transparent 70%);
    pointer-events: none;
}

.np-auth__hero-body {
    position: relative;
    z-index: 1;
    padding: 26px 0;
}

.np-auth__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #bfdbfe;
    margin-bottom: 22px;
}

.np-auth__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hn-orange-bright);
    box-shadow: 0 0 8px rgba(255, 109, 0, 0.9);
    animation: np-pulse 2s ease infinite;
}

@keyframes np-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(0.92); }
}

.np-auth__hero-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-family: var(--np-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-wrap: balance;
}

.np-auth__hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--hn-orange-bright), #ffa14d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.np-auth__hero-desc {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    max-width: 440px;
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 400;
    color: var(--hn-muted-on-dark);
    line-height: 1.65;
}

.np-auth__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.np-auth__stat {
    padding: 14px 12px;
    border-radius: var(--np-radius-sm);
    border: 1px solid rgba(165, 183, 210, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.np-auth__stat:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.02));
}

.np-auth__stat strong {
    display: block;
    font-family: var(--np-display);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
}

.np-auth__stat span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hn-muted-on-dark);
}

.np-auth__features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.np-auth__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #c9d6ea;
    line-height: 1.5;
}

.np-auth__features li i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(29, 78, 216, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.32);
    color: #93c5fd;
    font-size: 14px;
}

.np-auth__platforms {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(165, 183, 210, 0.16);
}

.np-auth__platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(165, 183, 210, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 600;
    color: var(--hn-muted-on-dark);
    transition: border-color 0.2s, color 0.2s;
}

.np-auth__platform:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
}

.np-auth__platform i {
    font-size: 14px;
    color: var(--hn-blue-bright);
}

/* ── Form panel (clean light) ── */
.np-auth__panel {
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px) clamp(20px, 3vw, 32px);
    background: #ffffff;
}

.np-auth__brandrow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: clamp(16px, 2.5vh, 22px);
    margin-bottom: clamp(16px, 2.5vh, 22px);
    border-bottom: 1px solid var(--hn-border-light);
}

.np-auth__logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(43, 58, 102, 0.12);
    background: linear-gradient(150deg, var(--hn-navy-700), var(--hn-navy-900));
    box-shadow: 0 8px 20px rgba(43, 58, 102, 0.25);
}

.np-auth__logo img {
    width: 34px;
    height: auto;
    object-fit: contain;
}

.np-auth__logo--pos {
    width: auto;
    min-width: 52px;
    max-width: 180px;
    padding: 0 12px;
}

.np-auth__logo--pos img {
    width: auto;
    height: 28px;
    max-width: 156px;
}

/* POS — tipografi wordmark (kutu logo yok) */
.np-auth__brandrow--pos {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: clamp(18px, 2.8vh, 24px);
}

.np-auth__wordmark {
    width: 100%;
}

.np-auth__wordmark-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    font-family: var(--np-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.np-auth__wordmark-net {
    font-size: clamp(28px, 4.2vw, 34px);
    color: var(--hn-navy-700);
}

.np-auth__wordmark-pilot {
    font-size: clamp(28px, 4.2vw, 34px);
    background: linear-gradient(135deg, var(--hn-blue-bright) 0%, var(--hn-blue-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.np-auth__wordmark-pos {
    margin-left: 10px;
    padding: 5px 12px 6px;
    border-radius: 8px;
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--hn-orange-bright) 0%, var(--hn-orange-deep) 100%);
    box-shadow: 0 4px 14px rgba(236, 116, 26, 0.35);
    transform: translateY(-2px);
}

.np-auth__wordmark-sub {
    margin: 10px 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hn-text-soft);
}

.np-auth__brandmeta {
    min-width: 0;
}

.np-auth__title {
    margin: 0;
    font-family: var(--np-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--hn-text);
    line-height: 1.25;
}

.np-auth__subtitle {
    margin: 2px 0 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hn-blue);
}

.np-auth__intro {
    text-align: left;
    margin-bottom: clamp(20px, 3vh, 28px);
}

.np-auth__heading {
    position: relative;
    margin: 0 0 6px;
    padding-bottom: 12px;
    font-family: var(--np-display);
    font-size: clamp(21px, 3vw, 25px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--hn-text);
    line-height: 1.2;
}

.np-auth__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hn-blue) 0%, var(--hn-blue) 55%, var(--hn-orange) 55%, var(--hn-orange-bright) 100%);
}

.np-auth__lead {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hn-text-soft);
    line-height: 1.55;
}

/* ── Form elements ── */
.auth-form-wrap { width: 100%; }

.input-group-auth {
    margin-bottom: 16px;
}

.input-group-auth label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hn-text-soft);
}

.input-group-auth .input-inner {
    position: relative;
}

.input-group-auth .input-inner i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hn-text-faint);
    font-size: 17px;
    pointer-events: none;
    transition: color 0.2s;
}

.login-input {
    width: 100%;
    height: var(--np-input-h);
    padding: 0 16px 0 46px;
    border: 1px solid var(--hn-border-light);
    border-radius: var(--np-radius-sm);
    background: var(--hn-bg-light);
    color: var(--hn-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.login-input::placeholder {
    color: var(--hn-text-faint);
    font-weight: 400;
}

.login-input:hover:not(:focus) {
    border-color: #c3cfdf;
}

.login-input:focus {
    border-color: var(--hn-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.input-inner:focus-within i {
    color: var(--hn-blue);
}

.auth-remember {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 6px 2px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-remember__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.auth-remember__box {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid #c3cfdf;
    border-radius: 6px;
    background: #ffffff;
    color: transparent;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.auth-remember__input:checked + .auth-remember__box {
    border-color: var(--hn-blue);
    background: var(--hn-blue);
    color: #ffffff;
}

.auth-remember__input:focus-visible + .auth-remember__box {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.auth-remember__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--hn-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.auth-remember__text small {
    color: var(--hn-text-faint);
    font-size: 12px;
    font-weight: 500;
}

/* Uygulamada Face ID / parmak izi ile giriş */
.auth-bio {
    margin: 0 0 18px;
}

.auth-bio[hidden] {
    display: none;
}

.auth-bio__btn {
    width: 100%;
    height: var(--np-btn-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--hn-blue);
    border-radius: var(--np-radius-sm);
    background: #ffffff;
    color: var(--hn-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, box-shadow 0.15s;
}

.auth-bio__btn i {
    font-size: 24px;
}

.auth-bio__btn:hover,
.auth-bio__btn:focus-visible {
    background: rgba(29, 78, 216, 0.06);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.auth-bio__btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.auth-bio__hint {
    margin: 8px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 12.5px;
}

.auth-bio__error {
    margin: 10px 0 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}

.auth-bio__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--hn-text-faint);
    font-size: 12px;
    font-weight: 600;
}

.auth-bio__divider::before,
.auth-bio__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Hızlı giriş (passkey / Face ID / parmak izi): kayıtlı cihazda form yerine karşılama ve tek düğme */
.np-quick-pending #staffLoginForm,
.np-quick-pending .np-auth__intro {
    visibility: hidden;
}

.np-quick-on #staffLoginForm,
.np-quick-on .np-auth__intro {
    display: none !important;
}

.auth-quick[hidden],
.auth-quick-back[hidden],
.auth-quick-notice[hidden],
.auth-quick [hidden] {
    display: none !important;
}

.auth-quick {
    margin: 4px 0 8px;
    animation: npQuickIn 0.28s ease-out;
}

@keyframes npQuickIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.auth-quick__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.auth-quick__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hn-navy-700) 0%, var(--hn-blue) 100%);
    color: #ffffff;
    font-family: var(--np-display);
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25), inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.auth-quick__avatar i {
    font-size: 26px;
}

.auth-quick__titles {
    min-width: 0;
}

.auth-quick__eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hn-orange);
}

.auth-quick__title {
    margin: 0;
    font-family: var(--np-display);
    font-size: clamp(21px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--hn-text);
    overflow-wrap: anywhere;
}

.auth-quick__lead {
    margin: 0 0 20px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--hn-text-soft);
}

.auth-quick__btn {
    width: 100%;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: var(--np-radius);
    background: linear-gradient(180deg, #f5821f 0%, var(--hn-orange) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.005em;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 24px rgba(236, 116, 26, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.auth-quick__btn:hover,
.auth-quick__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(236, 116, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    outline: none;
}

.auth-quick__btn:disabled {
    opacity: 0.75;
    cursor: progress;
    transform: none;
}

.auth-quick__btn[aria-busy="true"] .auth-quick__btn-icon {
    animation: npQuickPulse 1.1s ease-in-out infinite;
}

@keyframes npQuickPulse {
    50% { opacity: 0.45; }
}

.auth-quick__btn-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
}

.auth-quick__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 16px;
}

.auth-quick__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--hn-blue);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.auth-quick__link:hover,
.auth-quick__link:focus-visible {
    color: var(--hn-blue-deep);
    text-decoration: underline;
}

.auth-quick__link--muted {
    color: var(--hn-text-soft);
    font-weight: 600;
}

.auth-quick__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    color: var(--hn-text-faint);
    font-size: 12px;
    font-weight: 500;
}

.auth-quick__secure i {
    color: #16a34a;
    font-size: 15px;
}

.auth-quick-back {
    margin: 0 0 18px;
}

.auth-quick-notice {
    margin: 0 0 14px;
}

@media (max-width: 575.98px) {
    .auth-quick__links {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-quick,
    .auth-quick__btn[aria-busy="true"] .auth-quick__btn-icon {
        animation: none;
    }
}

.login-btn {
    width: 100%;
    height: var(--np-btn-h);
    margin-top: 4px;
    border: none;
    border-radius: var(--np-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: #fff;
    background: linear-gradient(180deg, #f5821f 0%, var(--hn-orange) 100%);
    box-shadow: 0 6px 18px rgba(236, 116, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.login-btn:hover,
.login-btn:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, var(--hn-orange) 0%, var(--hn-orange-deep) 100%);
    box-shadow: 0 10px 24px rgba(236, 116, 26, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.login-btn__icon {
    font-size: 18px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--np-radius-sm);
    color: var(--hn-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.auth-link:hover,
.auth-link:focus-visible {
    color: var(--hn-blue-deep);
    background: var(--hn-blue-soft);
    text-decoration: none;
}

.auth-link i {
    font-size: 15px;
    opacity: 0.85;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 4px;
}

.auth-links--single {
    justify-content: center;
}

.auth-link--forgot {
    font-size: 14px;
    letter-spacing: 0.01em;
}

@media (min-width: 960px) {
    .auth-link {
        min-height: auto;
        padding: 6px 12px;
    }

    .auth-link--forgot {
        font-size: 13px;
    }
}

.auth-otp-input {
    letter-spacing: 6px;
    text-align: center;
    font-size: 20px !important;
    font-weight: 700;
    padding-left: 16px !important;
}

/* ── Alerts (light theme) ── */
.alert-danger,
.alert-success,
.alert-warning {
    border-radius: var(--np-radius-sm);
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.alert-danger ul {
    margin: 0;
    padding-left: 18px;
}

.alert-danger li { margin-bottom: 2px; }

/* ── 2FA ── */
.twofa-info-box {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--np-radius-sm);
    border: 1px solid #d9e2f2;
    background: var(--hn-bg-blue);
    color: var(--hn-text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.twofa-info-box strong {
    color: var(--hn-text);
    font-weight: 700;
}

.twofa-autofill-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--hn-text-faint);
}

.twofa-expiry-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--np-radius-sm);
    border: 1px solid #c7d8f5;
    background: #f0f6ff;
    color: var(--hn-text-soft);
    font-size: 13px;
}

.twofa-expiry-box i {
    color: var(--hn-blue);
    font-size: 16px;
}

.twofa-expiry-box strong {
    color: var(--hn-blue-deep);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.twofa-expiry-hint {
    font-size: 12px;
    color: #6b7c93;
}

.twofa-expiry-box--expired {
    border-color: #f0c36d;
    background: #fff8e8;
}

.twofa-expired-alert {
    font-size: 13px;
}

.twofa-retry-links {
    margin-top: 12px;
}

.twofa-inline-form {
    margin: 0;
}

.twofa-inline-form .auth-link {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.twofa-channel-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.twofa-channel-btn {
    border: 1px solid var(--hn-border-light);
    border-radius: var(--np-radius-sm);
    background: var(--hn-bg-light);
    color: var(--hn-text-soft);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 12px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.twofa-channel-btn i { font-size: 16px; }

.twofa-channel-btn:hover {
    border-color: var(--ch-color, #8b99b5);
    color: var(--hn-text);
    background: #ffffff;
}

.twofa-channel-btn.active {
    border-color: var(--ch-color, #8b99b5);
    color: var(--ch-color, var(--hn-text));
    background: color-mix(in srgb, var(--ch-color, #8b99b5) 10%, #ffffff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ch-color, #8b99b5) 22%, transparent);
}

.twofa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.twofa-actions form {
    flex: 1;
    min-width: 120px;
}

.twofa-action-btn {
    width: 100%;
    border: 1px solid var(--hn-border-light);
    border-radius: var(--np-radius-sm);
    background: var(--hn-bg-light);
    color: var(--hn-text-soft);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.twofa-action-btn:hover:not(:disabled),
.twofa-action-btn:focus-visible:not(:disabled) {
    border-color: var(--hn-blue);
    background: var(--hn-blue-soft);
    color: var(--hn-blue-deep);
}

.twofa-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Turnstile ── */
.turnstile-wrap,
.recaptcha-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
}

.turnstile-wrap--silent {
    margin: 0;
    padding: 0;
    border: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.turnstile-wrap--visible {
    margin: 16px 0 12px;
    padding: 0;
    max-height: none;
    min-height: 65px;
    opacity: 1;
    overflow: visible;
    border: none;
    background: transparent;
}

.turnstile-wrap--verified {
    display: none !important;
    margin: 0;
    min-height: 0;
    max-height: 0;
}

.turnstile-status {
    width: 100%;
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: var(--np-radius-sm);
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 0.82rem;
    text-align: center;
}

.turnstile-wrap > div,
.recaptcha-wrap > div {
    overflow: visible;
    transform: none;
}

/* ── Trust badges ── */
.np-auth__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--hn-border-light);
}

.np-auth__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hn-text-faint);
}

.np-auth__trust-item i {
    color: var(--hn-blue);
    font-size: 14px;
}

/* ── Footer ── */
.np-auth__footer {
    flex-shrink: 0;
    width: 100%;
    max-width: var(--np-shell-max);
    margin: 12px auto 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--hn-muted-on-dark);
    line-height: 1.4;
}

.np-auth__footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.np-auth__footer a:hover {
    color: #93c5fd;
}

/* ── Desktop: two-column, full screen ── */
@media (min-width: 960px) {
    .np-auth__shell {
        padding: 0;
    }

    .np-auth__main {
        max-width: none;
        align-items: stretch;
    }

    .np-auth__card {
        grid-template-columns: 1.1fr 1fr;
        grid-template-rows: 3px minmax(0, 1fr);
        min-height: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        animation: np-fade 0.4s ease both;
    }

    .np-auth__hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: clamp(32px, 4.5vh, 56px) clamp(40px, 5vw, 96px) clamp(32px, 4.5vh, 56px) clamp(48px, 7vw, 128px);
    }

    .np-auth__hero > * {
        max-width: 560px;
    }

    .np-auth__hero-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .np-auth__panel {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: clamp(28px, 4vh, 48px) clamp(32px, 4vw, 72px);
        box-shadow: -20px 0 60px -30px rgba(7, 12, 28, 0.5);
    }

    .np-auth__panel > * {
        width: 100%;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .np-auth__panel-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    .np-auth__brandrow {
        border-bottom: 1px solid var(--hn-border-light);
        margin-bottom: 0;
    }

    .np-auth__footer {
        margin: 0 auto;
        padding: 11px 24px;
        max-width: none;
        border-top: 1px solid rgba(165, 183, 210, 0.12);
        background: rgba(19, 28, 56, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@keyframes np-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Large desktop / Windows EXE ── */
@media (min-width: 1600px) {
    .np-auth__card {
        grid-template-columns: 1.2fr 1fr;
    }

    .np-auth__hero > * {
        max-width: 620px;
    }

    .np-auth__panel > * {
        max-width: 490px;
    }
}

/* ── Tablet portrait ── */
@media (min-width: 600px) and (max-width: 959px) {
    .np-auth__hero {
        text-align: center;
    }

    .np-auth__stats {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Telefon + tablet: kenardan kenara tam ekran ── */
@media (max-width: 959px) {
    .np-auth__shell {
        padding: 0;
    }

    .np-auth__main {
        max-width: none;
        align-items: stretch;
    }

    .np-auth__card {
        grid-template-rows: 3px auto minmax(0, 1fr);
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .np-auth__hero {
        padding:
            calc(20px + var(--np-safe-top))
            calc(20px + var(--np-safe-right))
            18px
            calc(20px + var(--np-safe-left));
    }

    .np-auth__hero > *,
    .np-auth__panel > * {
        width: 100%;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .np-auth__panel {
        display: flex;
        flex-direction: column;
        padding:
            22px
            calc(18px + var(--np-safe-right))
            18px
            calc(18px + var(--np-safe-left));
    }

    .np-auth__panel-body {
        margin-bottom: 16px;
    }

    .np-auth__footer {
        margin: 0;
        max-width: none;
        padding:
            10px
            calc(16px + var(--np-safe-right))
            calc(10px + var(--np-safe-bottom))
            calc(16px + var(--np-safe-left));
        background: var(--hn-navy-950);
        border-top: 1px solid rgba(165, 183, 210, 0.12);
    }

    .np-auth__hero-desc,
    .np-auth__features,
    .np-auth__platforms {
        display: none;
    }

    .np-auth__hero-title {
        font-size: clamp(22px, 6vw, 28px);
        margin-bottom: 0;
    }

    .np-auth__badge {
        margin-bottom: 12px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .np-auth__stats {
        margin-bottom: 0;
        gap: 8px;
        margin-top: 14px;
    }

    .np-auth__stat {
        padding: 10px 8px;
    }

    .np-auth__stat strong {
        font-size: 16px;
    }

    .np-auth__stat span {
        font-size: 10px;
    }

    .login-input {
        font-size: 16px;
    }

    .login-btn {
        min-height: var(--np-btn-h);
    }

    .turnstile-wrap--visible {
        padding: 0;
    }

    .np-auth__hero-body {
        padding: 0;
    }

    .np-auth__brandrow {
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .np-auth__logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .np-auth__logo img {
        width: 28px;
    }

    .np-auth__title {
        font-size: 16px;
    }

    .np-auth__heading {
        font-size: 19px;
    }

    .np-auth__lead {
        font-size: 12.5px;
    }

    .input-group-auth {
        margin-bottom: 12px;
    }

    .np-auth__trust {
        margin-top: auto;
        padding-top: 14px;
        gap: 8px 14px;
    }

    .np-auth__trust-item {
        font-size: 10px;
    }
}

/* ── Very narrow: scale widget down to fit ── */
@media (max-width: 359px) {
    .turnstile-wrap > div,
    .recaptcha-wrap > div {
        transform: scale(calc(100vw / 360));
        transform-origin: center center;
    }
}

/* ── Small phones ── */
@media (max-width: 380px) {
    .twofa-channel-btns {
        gap: 6px;
    }

    .twofa-channel-btn {
        padding: 10px 4px;
        font-size: 12px;
    }
}

@media (max-width: 339px) {
    .twofa-channel-btns,
    .np-auth__stats {
        grid-template-columns: 1fr;
    }
}

/* ── Short viewport (landscape phone) ── */
@media (max-height: 640px) and (max-width: 959px) {
    .np-auth__hero {
        padding:
            calc(12px + var(--np-safe-top))
            calc(16px + var(--np-safe-right))
            12px
            calc(16px + var(--np-safe-left));
    }

    .np-auth__stats {
        display: none;
    }

    .np-auth__logo {
        width: 40px;
        height: 40px;
    }

    .np-auth__logo img {
        width: 26px;
    }

    .np-auth__brandrow {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .np-auth__intro .np-auth__lead {
        display: none;
    }

    .np-auth__trust {
        display: none;
    }

    :root {
        --np-input-h: 46px;
        --np-btn-h: 48px;
    }
}

/* Başka yerde açık oturum onayı — alttan açılan, mobilde tam genişlik */
.np-takeover {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: calc(12px + var(--np-safe-bottom));
    background: rgba(19, 28, 56, 0.62);
}

.np-takeover__card {
    width: min(440px, 100%);
    max-height: min(88vh, 640px);
    overflow: auto;
    background: #fff;
    color: var(--hn-text);
    border-radius: 22px 22px 18px 18px;
    padding: 22px 18px 16px;
    box-shadow: 0 24px 60px rgba(19, 28, 56, 0.28);
}

.np-takeover__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff4e8;
    color: var(--hn-orange-deep);
    font-size: 26px;
}

.np-takeover h2 {
    margin: 0 0 8px;
    font-family: var(--np-display);
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.np-takeover p {
    margin: 0 0 14px;
    color: var(--hn-text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.np-takeover__places {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-takeover__places li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: var(--hn-bg-blue);
    border: 1px solid var(--hn-border-light);
}

.np-takeover__places i {
    margin-top: 2px;
    color: var(--hn-navy-600);
    font-size: 18px;
}

.np-takeover__places strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
}

.np-takeover__places small {
    display: block;
    margin-top: 2px;
    color: var(--hn-text-soft);
    font-size: 0.8rem;
    word-break: break-word;
}

.np-takeover__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.np-takeover__meta span {
    display: block;
}

.np-takeover .login-btn {
    margin-top: 0;
    min-height: 48px;
}

.np-takeover__cancel {
    width: 100%;
    margin-top: 8px;
    min-height: 46px;
    border: none;
    background: transparent;
    color: var(--hn-text-soft);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 640px) {
    .np-takeover {
        align-items: center;
        padding: 24px;
    }

    .np-takeover__card {
        border-radius: 22px;
        padding: 26px 24px 18px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .np-auth__orb,
    .np-auth__badge-dot,
    .np-auth__card {
        animation: none !important;
    }
}
