
:root {
    --nf-black: #080909;
    --nf-black-soft: #101111;
    --nf-panel: rgba(19, 20, 20, 0.94);
    --nf-panel-light: #1a1b1b;
    --nf-gold: #d3aa45;
    --nf-gold-light: #f3d77c;
    --nf-gold-soft: rgba(211, 170, 69, 0.16);
    --nf-white: #f7f6f2;
    --nf-muted: #a4a5a5;
    --nf-border: rgba(233, 196, 104, 0.22);
    --nf-error: #ff6b71;
    --nf-success: #70d59b;
    --nf-radius: 28px;
    --nf-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--nf-black);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--nf-white);
    background:
        radial-gradient(circle at 15% 15%, rgba(211, 170, 69, 0.08), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(211, 170, 69, 0.055), transparent 34%),
        linear-gradient(145deg, #070808 0%, #0e0f0f 50%, #050606 100%);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nf-login-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding:
        max(28px, env(safe-area-inset-top))
        max(28px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(28px, env(safe-area-inset-left));
}

.nf-login-page::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.nf-login-glow {
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(90px);
}

.nf-login-glow-one {
    top: -220px;
    left: -150px;
    background: rgba(225, 185, 79, 0.13);
}

.nf-login-glow-two {
    right: -220px;
    bottom: -250px;
    background: rgba(186, 141, 35, 0.12);
}

.nf-back-home {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: max(24px, env(safe-area-inset-left));
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d6d1c5;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.nf-back-home svg {
    width: 18px;
    height: 18px;
}

.nf-back-home:hover,
.nf-back-home:focus-visible {
    color: var(--nf-gold-light);
    transform: translateX(-2px);
}

.nf-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 56px));
    min-height: min(760px, calc(100dvh - 56px));
    overflow: hidden;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
    background: rgba(12, 13, 13, 0.76);
    box-shadow: var(--nf-shadow);
    backdrop-filter: blur(22px);
}

.nf-login-shell::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: inherit;
}

.nf-login-visual {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    overflow: hidden;
    background: #171818;
}

.nf-login-visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(32px, 5vw, 76px);
    object-fit: contain;
    object-position: center;
    background: #171818;
    transform: none;
}

.nf-login-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, transparent 62%, rgba(8, 9, 9, 0.35)),
        linear-gradient(to bottom, rgba(8, 9, 9, 0.04) 25%, rgba(8, 9, 9, 0.2) 58%, rgba(8, 9, 9, 0.96) 100%);
}

.nf-login-visual-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 36px;
}

.nf-login-kicker {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 12px;
    color: var(--nf-gold-light);
    border: 1px solid rgba(243, 215, 124, 0.28);
    border-radius: 999px;
    background: rgba(7, 8, 8, 0.66);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.nf-login-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nf-login-benefit {
    display: flex;
    min-width: 0;
    min-height: 104px;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(10, 11, 11, 0.7);
    backdrop-filter: blur(14px);
}

.nf-login-benefit-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #15120a;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--nf-gold-light), #b98422);
    box-shadow: 0 8px 22px rgba(185, 132, 34, 0.2);
}

.nf-login-benefit-icon svg {
    width: 18px;
    height: 18px;
}

.nf-login-benefit strong,
.nf-login-benefit small {
    display: block;
}

.nf-login-benefit strong {
    overflow: hidden;
    color: #f5ebcd;
    font-size: 0.8rem;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.nf-login-benefit small {
    margin-top: 4px;
    color: #aaa9a5;
    font-size: 0.68rem;
    line-height: 1.35;
}

.nf-login-panel {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5vw, 72px);
    background:
        radial-gradient(circle at 100% 0%, rgba(213, 171, 70, 0.08), transparent 38%),
        linear-gradient(160deg, rgba(23, 24, 24, 0.96), rgba(13, 14, 14, 0.98));
}

.nf-mobile-brand {
    display: none;
}

.nf-login-card {
    width: min(100%, 440px);
    margin: 0 auto;
}

.nf-security-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--nf-gold-light);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nf-security-label svg {
    width: 16px;
    height: 16px;
}

.nf-login-heading {
    margin-bottom: 28px;
}

.nf-login-eyebrow {
    display: block;
    margin-bottom: 0;
    color: var(--nf-gold-light);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 820;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.nf-login-heading h1 {
    margin: 0;
    color: #fffdf7;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.nf-login-heading p {
    max-width: 390px;
    margin: 13px 0 0;
    color: var(--nf-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.nf-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: 13px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.nf-alert-icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.nf-alert-icon svg {
    width: 17px;
    height: 17px;
}

.nf-alert-error {
    color: #ffd9db;
    border-color: rgba(255, 107, 113, 0.34);
    background: rgba(153, 30, 37, 0.18);
}

.nf-alert-success {
    color: #d8ffea;
    border-color: rgba(112, 213, 155, 0.32);
    background: rgba(38, 124, 78, 0.17);
}

.nf-alert-info {
    color: #e8e0c8;
    border-color: rgba(211, 170, 69, 0.26);
    background: rgba(211, 170, 69, 0.08);
}

.nf-login-form {
    display: grid;
    gap: 18px;
}

.nf-field {
    display: grid;
    gap: 8px;
}

.nf-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nf-field label {
    color: #e6e3da;
    font-size: 0.82rem;
    font-weight: 700;
}

.nf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nf-input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: #827c6b;
    pointer-events: none;
}

.nf-input-icon svg {
    width: 18px;
    height: 18px;
}

.nf-input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 50px 0 48px;
    color: var(--nf-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    outline: none;
    border-radius: 14px;
    background: rgba(7, 8, 8, 0.62);
    caret-color: var(--nf-gold-light);
    font-size: 0.94rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.nf-input-wrap input::placeholder {
    color: #686a69;
}

.nf-input-wrap input:hover {
    border-color: rgba(243, 215, 124, 0.25);
}

.nf-input-wrap input:focus {
    border-color: var(--nf-gold);
    background: rgba(8, 9, 9, 0.82);
    box-shadow: 0 0 0 4px rgba(211, 170, 69, 0.11);
}

.nf-input-wrap input[aria-invalid="true"] {
    border-color: var(--nf-error);
    box-shadow: 0 0 0 4px rgba(255, 107, 113, 0.09);
}

.nf-password-toggle {
    position: absolute;
    right: 9px;
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #969181;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease;
}

.nf-password-toggle:hover,
.nf-password-toggle:focus-visible {
    color: var(--nf-gold-light);
    outline: none;
    background: rgba(211, 170, 69, 0.09);
}

.nf-password-toggle svg {
    width: 19px;
    height: 19px;
}

.nf-password-toggle .nf-eye-closed {
    display: none;
}

.nf-password-toggle.is-visible .nf-eye-open {
    display: none;
}

.nf-password-toggle.is-visible .nf-eye-closed {
    display: block;
}

.nf-field-error {
    min-height: 1em;
    color: #ff969b;
    font-size: 0.74rem;
}

.nf-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -1px;
}

.nf-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b5b3ad;
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
}

.nf-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.nf-checkbox {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(7, 8, 8, 0.7);
    transition: border-color 150ms ease, background 150ms ease;
}

.nf-checkbox svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    stroke-width: 2.4;
}

.nf-remember input:checked + .nf-checkbox {
    border-color: var(--nf-gold);
    background: linear-gradient(145deg, var(--nf-gold-light), #b88629);
}

.nf-remember input:checked + .nf-checkbox svg {
    opacity: 1;
}

.nf-remember input:focus-visible + .nf-checkbox {
    box-shadow: 0 0 0 4px rgba(211, 170, 69, 0.13);
}

.nf-help-link {
    color: var(--nf-gold-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.nf-help-link:hover,
.nf-help-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nf-login-submit {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 0 22px;
    overflow: hidden;
    color: #11100c;
    border: 1px solid #f4dc91;
    border-radius: 14px;
    background:
        linear-gradient(115deg, #aa7b25 0%, #e6c366 42%, #f6df94 58%, #b98525 100%);
    background-size: 180% 100%;
    box-shadow:
        0 14px 34px rgba(184, 132, 37, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.44);
    font-size: 0.91rem;
    font-weight: 820;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background-position 260ms ease;
}

.nf-login-submit:hover,
.nf-login-submit:focus-visible {
    outline: none;
    background-position: 100% 0;
    box-shadow:
        0 18px 44px rgba(184, 132, 37, 0.32),
        0 0 0 4px rgba(211, 170, 69, 0.12);
    transform: translateY(-1px);
}

.nf-login-submit:active {
    transform: translateY(1px);
}

.nf-login-submit:disabled {
    cursor: wait;
    opacity: 0.82;
    transform: none;
}

.nf-login-submit > svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
}

.nf-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(17, 16, 12, 0.28);
    border-top-color: #11100c;
    border-radius: 50%;
    animation: nf-spin 700ms linear infinite;
}

.nf-login-submit.is-loading .nf-submit-spinner {
    display: block;
}

.nf-login-submit.is-loading > svg {
    display: none;
}

@keyframes nf-spin {
    to {
        transform: rotate(360deg);
    }
}

.nf-login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nf-login-footer span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7f817f;
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

.nf-login-footer svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #b0924b;
}

.nf-login-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, 440px);
    margin: 26px auto 0;
    color: #6f7170;
    font-size: 0.69rem;
}

.nf-login-legal a {
    color: #8e908e;
    text-decoration: none;
}

.nf-login-legal a:hover,
.nf-login-legal a:focus-visible {
    color: var(--nf-gold-light);
}

@media (max-width: 1020px) {
    .nf-login-page {
        align-items: start;
        overflow-y: auto;
        padding-top: 64px;
    }

    .nf-login-shell {
        grid-template-columns: minmax(0, 0.86fr) minmax(410px, 1.14fr);
        min-height: 690px;
    }

    .nf-login-benefits {
        grid-template-columns: 1fr;
    }

    .nf-login-benefit {
        min-height: auto;
        flex-direction: row;
        align-items: center;
    }

    .nf-login-benefit small {
        display: none;
    }
}

@media (max-width: 780px) {
    .nf-login-page {
        display: block;
        min-height: 100dvh;
        padding:
            max(18px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(24px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .nf-back-home {
        position: static;
        margin: 0 0 16px 4px;
    }

    .nf-login-shell {
        display: block;
        min-height: 0;
        border-radius: 22px;
    }

    .nf-login-visual {
        display: none;
    }

    .nf-login-panel {
        min-height: auto;
        padding: 24px;
    }

    .nf-mobile-brand {
        display: block;
        height: 170px;
        margin: -24px -24px 26px;
        overflow: hidden;
        border-bottom: 1px solid var(--nf-border);
        background: #181919;
    }

    .nf-mobile-brand img {
        width: 100%;
        height: 100%;
        padding: 14px 22px;
        object-fit: contain;
        object-position: center;
        background: #171818;
    }

    .nf-login-heading h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nf-login-panel {
        padding: 20px 18px 22px;
    }

    .nf-mobile-brand {
        height: 145px;
        margin: -20px -18px 24px;
    }

    .nf-security-label {
        margin-bottom: 18px;
        font-size: 0.66rem;
    }

    .nf-login-heading {
        margin-bottom: 23px;
    }

    .nf-login-heading h1 {
        font-size: 1.76rem;
    }

    .nf-login-heading p {
        font-size: 0.86rem;
    }

    .nf-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .nf-input-wrap input,
    .nf-login-submit {
        min-height: 54px;
    }

    .nf-login-legal {
        margin-top: 20px;
    }
}

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


@media (max-width: 480px) {
    .nf-login-eyebrow {
        font-size: 1.9rem;
    }
}
