/* Bu sayfanin renkleri artik marka token'larindan geliyor (nitelix-tema.css).
   Degisken ADLARI korundu ki dosyanin geri kalanina dokunmak gerekmesin;
   yalnizca neye baglandiklari degisti.
   Eski degerler karsilastirma icin yorumda birakildi. */
:root {
    --login-bg: var(--nx-d-bg); /* eski: #07111f */
    --login-ink: var(--nx-l-text); /* eski: #0f172a */
    --login-muted: var(--nx-l-muted); /* eski: #64748b */
    --login-blue: var(--nx-accent); /* eski: #38bdf8 */
    --login-blue-strong: var(--nx-brand-500); /* eski: #2563eb */
    --login-violet: var(--nx-brand-700); /* eski: #7c3aed - mor marka disi */
    --login-green: var(--nx-success); /* eski: #22c55e */
    --login-card: rgba(255, 255, 255, .90);
    --login-border: rgba(255, 255, 255, .24);
    --login-shadow: 0 34px 100px rgba(4, 9, 15, .42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--login-bg);
    color: #fff;
}

body {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(44, 90, 168, .46), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(74, 135, 232, .18), transparent 30%),
        radial-gradient(circle at 58% 84%, rgba(44, 90, 168, .30), transparent 38%),
        linear-gradient(130deg, var(--nx-brand-700) 0%, var(--nx-d-bg) 48%, var(--nx-brand-900) 100%);
}

#networkCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .72;
}

.login-grid-glow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(147, 163, 188, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 163, 188, .12) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.login-orb {
    position: fixed;
    z-index: 1;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
    animation: orbFloat 9s ease-in-out infinite;
}

.login-orb-one {
    width: 260px;
    height: 260px;
    left: 8vw;
    top: 13vh;
    background: rgba(74, 135, 232, .20);
}

.login-orb-two {
    width: 330px;
    height: 330px;
    right: 8vw;
    bottom: 8vh;
    background: rgba(44, 90, 168, .22);
    animation-delay: -3s;
}

.login-orb-three {
    width: 180px;
    height: 180px;
    right: 26vw;
    top: 10vh;
    background: rgba(74, 135, 232, .12);
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}

.login-topbar {
    position: fixed;
    top: 22px;
    left: 28px;
    right: 28px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(226, 232, 240, .92);
    font-weight: 700;
    letter-spacing: .02em;
}

/* Yatay kilit icin genisletildi (onceden 98x34 -> logo 21 px yuksekliğe
   dusuyor ve okunmuyordu). Oran 290:64. */
.login-brand-mini img {
    width: 158px;
    max-height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .24));
}

.login-brand-mini span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(16, 27, 48, .38);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(16, 27, 48, .36);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(16px);
    user-select: none;
}

.lang-pill {
    font-size: 12px;
    font-weight: 800;
    color: rgba(226, 232, 240, .70);
    line-height: 1;
}

.lang-pill.active {
    color: #fff;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: background .22s ease;
}

.toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
    transition: left .22s ease;
}

.toggle.active {
    background: linear-gradient(135deg, var(--login-blue-strong), var(--login-violet));
}

.toggle.active::before {
    left: 26px;
}

.helpline-login-shell {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100vw - 56px));
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .82fr);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(28px);
    overflow: hidden;
}

.helpline-login-shell::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 33px;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, .22), transparent 28%, transparent 65%, rgba(74, 135, 232, .18));
    opacity: .82;
}

.login-showcase {
    position: relative;
    min-height: 640px;
    padding: 58px 58px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.login-showcase::before {
    content: "";
    position: absolute;
    width: 660px;
    height: 660px;
    left: -210px;
    top: -145px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(74, 135, 232, .28), transparent 62%);
}

.login-showcase::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(44, 90, 168, .28), transparent 66%);
}

.showcase-badge,
.showcase-metrics,
.floating-ticket,
.login-showcase h1,
.showcase-text {
    position: relative;
    z-index: 2;
}

.showcase-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(16, 27, 48, .34);
    color: rgba(226, 232, 240, .92);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}

.showcase-badge i {
    color: var(--nx-accent);
}

.login-showcase h1 {
    width: min(620px, 100%);
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.showcase-text {
    width: min(540px, 100%);
    margin: 0 0 32px;
    color: rgba(226, 232, 240, .78);
    font-size: 16px;
    line-height: 1.72;
}

.showcase-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(570px, 100%);
}

.metric-card {
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(16, 27, 48, .36);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.metric-card i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(74, 135, 232, .14);
    color: var(--nx-accent);
    font-size: 18px;
}

.metric-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.metric-card span {
    display: block;
    color: rgba(226, 232, 240, .64);
    font-size: 12px;
    line-height: 1.35;
}

.floating-ticket {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 235px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .30);
    backdrop-filter: blur(20px);
}

.floating-ticket-one {
    right: 38px;
    top: 84px;
    animation: floatCard 5.5s ease-in-out infinite;
}

.floating-ticket-two {
    right: 78px;
    bottom: 74px;
    animation: floatCard 6.5s ease-in-out infinite;
    animation-delay: -2.8s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ticket-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--nx-warning);
    box-shadow: 0 0 0 8px rgba(232, 163, 23, .16);
    flex: 0 0 auto;
}

.ticket-dot.success {
    background: var(--login-green);
    box-shadow: 0 0 0 8px rgba(14, 160, 123, .16);
}

.floating-ticket b,
.floating-ticket small {
    display: block;
}

.floating-ticket b {
    color: #fff;
    font-size: 13px;
    margin-bottom: 2px;
}

.floating-ticket small {
    color: rgba(226, 232, 240, .66);
    font-size: 11px;
}

.floating-ticket > i {
    margin-left: auto;
    color: rgba(34, 193, 214, .90);
}

.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(242, 246, 252, .88));
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 8%, rgba(74, 135, 232, .18), transparent 30%),
        radial-gradient(circle at 8% 78%, rgba(74, 135, 232, .10), transparent 34%);
}

.login-panel-inner {
    position: relative;
    z-index: 2;
    width: min(390px, 100%);
    padding: 28px;
    border: 1px solid rgba(147, 163, 188, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 70px rgba(16, 27, 48, .12);
    backdrop-filter: blur(18px);
}

.panel-logo-wrap {
    position: relative;
    width: 116px;
    height: 74px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kapsayici (panel-logo-orbit) 116x74 bir OVAL. Iki farkli oran buraya
   oturmak zorunda:
     - marka rozeti  64x64  (kare)
     - tenant logosu  genelde yatay
   max-height 54 -> kare rozet ovalin icinde nefes payiyla durur (74 iken
   dikey bosluğu tamamen dolduruyordu).
   max-width 92 -> yatay tenant logosu ovalin en genis yerine sigar. */
.panel-logo-wrap img {
    max-width: 92px;
    max-height: 54px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 14px rgba(16, 27, 48, .18));
}

.panel-logo-orbit {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(44, 90, 168, .12), rgba(74, 135, 232, .10));
    border: 1px solid rgba(44, 90, 168, .16);
}

.login-heading {
    text-align: center;
    margin-bottom: 22px;
}

.login-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--nx-brand-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: var(--login-ink);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 8px 0 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.55;
}

.login-form-modern {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.input-group.login-field {
    position: relative;
    display: block;
    margin: 0;
}

.login-field > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--nx-l-muted);
    z-index: 2;
    pointer-events: none;
}

.login-field input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 46px;
    border: 1px solid var(--nx-l-border);
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .92);
    color: var(--nx-l-text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.login-field input::placeholder {
    color: var(--nx-d-muted);
    font-weight: 500;
}

.login-field input:focus {
    border-color: rgba(44, 90, 168, .72);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(44, 90, 168, .12), 0 10px 24px rgba(16, 27, 48, .08);
}

.password-ig .pwd-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--nx-l-muted);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.password-ig .pwd-toggle:hover {
    background: rgba(44, 90, 168, .10);
    color: var(--nx-brand-500);
}

.password-ig .pwd-toggle i {
    position: static !important;
    transform: none !important;
}

.password-ig > :not(:first-child) {
    margin-left: 0 !important;
}

.login-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--nx-brand-400) 0%, var(--nx-brand-500) 45%, var(--nx-brand-700) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 18px 36px rgba(44, 90, 168, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-btn:hover,
.login-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(44, 90, 168, .36);
    filter: saturate(1.08);
}

.login-btn i {
    transition: transform .18s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

.login-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.login-links a {
    color: var(--nx-l-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color .16s ease, transform .16s ease;
}

.login-links a:hover {
    color: var(--nx-brand-500);
    transform: translateY(-1px);
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.support-link i {
    color: var(--nx-accent-dark);
}

.qr-support-card {
    margin-top: 20px;
    padding: 14px;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(44, 90, 168, .14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(242, 246, 252, .88), rgba(238, 242, 248, .76));
}

.qr-frame {
    width: 94px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(16, 27, 48, .08), 0 12px 24px rgba(16, 27, 48, .08);
}

.qr-code {
    width: 82px !important;
    height: 82px !important;
    display: block;
}

.qr-support-card strong {
    display: block;
    color: var(--nx-l-text);
    font-size: 13px;
    margin-bottom: 5px;
}

.qr-support-card p {
    margin: 0;
    color: var(--nx-l-muted);
    font-size: 11px;
    line-height: 1.45;
}

.login-alert {
    margin: 14px 0 0;
    border-radius: 14px;
    font-size: 13px;
}

@media (max-width: 1040px) {
    body {
        overflow: auto;
        padding-top: 86px;
        padding-bottom: 28px;
    }

    .helpline-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-showcase {
        min-height: auto;
        padding: 42px;
    }

    .login-panel {
        padding: 28px;
    }

    .floating-ticket-one,
    .floating-ticket-two {
        display: none;
    }
}

@media (max-width: 700px) {
    body {
        padding: 82px 14px 20px;
    }

    .login-topbar {
        left: 14px;
        right: 14px;
        top: 14px;
    }

    .login-brand-mini span {
        display: none;
    }

    .helpline-login-shell {
        width: 100%;
        border-radius: 24px;
    }

    .helpline-login-shell::before {
        border-radius: 23px;
    }

    .login-showcase {
        padding: 30px 24px 24px;
    }

    .login-showcase h1 {
        font-size: 32px;
    }

    .showcase-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 84px;
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .metric-card i {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .login-panel {
        padding: 16px;
    }

    .login-panel-inner {
        padding: 22px;
        border-radius: 24px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-links {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .qr-support-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qr-frame {
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
