/*
========================================
NATIONAL LOGISTICS — AUTH SCREENS
Shared by login, forgot/reset password, register, verify email.
========================================
*/
:root {
    --nl-accent: #0284c7;
    --nl-accent-hover: #0369a1;
    --nl-accent-rgb: 2, 132, 199;
    --nl-navy: #0f172a;
    --nl-navy-2: #1e293b;
    --nl-text: #0f172a;
    --nl-text-2: #334155;
    --nl-muted: #64748b;
    --nl-faint: #94a3b8;
    --nl-border: #e2e8f0;
    --nl-border-strong: #cbd5e1;
}

.nl-auth-body {
    margin: 0;
    background: #f3f5f8;
    color: var(--nl-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nl-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    min-height: 100vh;
}

/* ---------- Left: brand panel ---------- */
.nl-auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    background:
        radial-gradient(700px 300px at 10% 0%, rgba(99, 102, 241, 0.35), transparent 70%),
        linear-gradient(140deg, #0b1124 0%, #111b3d 50%, #0c3a4a 100%);
    color: #cbd5e1;
}

.nl-auth-brand::before {
    /* fine engineering grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.nl-auth-brand::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.32), transparent 65%);
}

.nl-auth-brand > * {
    position: relative;
    z-index: 1;
}

.nl-auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nl-auth-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #2dd4bf 100%);
    box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nl-auth-logo-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.nl-auth-logo-sub {
    color: var(--nl-faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nl-auth-pitch {
    max-width: 520px;
}

.nl-auth-pitch h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nl-auth-pitch h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nl-auth-pitch h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 16px;
}

.nl-auth-pitch p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--nl-faint);
    margin: 0 0 32px;
}

.nl-auth-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nl-auth-modules li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.nl-auth-modules .bi {
    color: #5eead4;
    font-size: 1.1rem;
    line-height: 1.2;
}

.nl-auth-modules strong {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.nl-auth-modules span {
    font-size: 0.75rem;
    color: var(--nl-faint);
}

.nl-auth-foot {
    font-size: 0.75rem;
    color: #64748b;
}

/* ---------- Right: form panel ---------- */
.nl-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
    border-left: 1px solid var(--nl-border);
}

.nl-auth-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.nl-auth-mobile-logo {
    display: none;
    margin-bottom: 32px;
}

.nl-auth-mobile-logo .nl-auth-logo-name {
    color: var(--nl-text);
}

.nl-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--nl-text);
}

.nl-auth-subtitle {
    color: var(--nl-muted);
    font-size: 0.9rem;
    margin: 0 0 28px;
}

.nl-field {
    margin-bottom: 18px;
}

.nl-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nl-text-2);
}

.nl-input-wrap {
    position: relative;
}

.nl-input-wrap > .bi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nl-faint);
    font-size: 0.95rem;
    pointer-events: none;
}

.nl-input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 38px;
    border: 1px solid var(--nl-border-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--nl-text);
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nl-input::placeholder {
    color: var(--nl-faint);
}

.nl-input:focus {
    outline: none;
    border-color: var(--nl-accent);
    box-shadow: 0 0 0 3px rgba(var(--nl-accent-rgb), 0.15);
}

.nl-input.is-invalid {
    border-color: #dc2626;
}

.nl-error {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #dc2626;
}

.nl-link {
    color: var(--nl-accent-hover);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.nl-link:hover {
    color: var(--nl-accent-hover);
    text-decoration: underline;
}

.nl-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 22px;
    font-size: 0.85rem;
    color: var(--nl-muted);
}

.nl-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--nl-accent);
}

.nl-btn {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(var(--nl-accent-rgb), 0.3);
    transition: background 0.15s;
}

.nl-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0f766e 100%);
}

.nl-btn:disabled {
    opacity: 0.75;
    cursor: progress;
}

.nl-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.85rem;
}

.nl-auth-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.nl-auth-legal a {
    color: var(--nl-muted);
    font-size: 0.78rem;
    text-decoration: none;
}

.nl-auth-legal a:hover {
    color: var(--nl-text);
}

@media (max-width: 1023.98px) {
    .nl-auth {
        grid-template-columns: 1fr;
    }

    .nl-auth-brand {
        display: none;
    }

    .nl-auth-panel {
        border-left: 0;
        padding: 40px 20px;
    }

    .nl-auth-mobile-logo {
        display: flex;
    }
}
