/* ── 1. Variables ─────────────────────────────────────────────────── */
:root {
    --atc-navy:    #092D5C;
    --atc-blue:    #0B4EA2;
    --atc-red:     #D7282F;
    --atc-bg:      #F4F7FB;
    --atc-text:    #12213A;
    --atc-muted:   #5F6B7A;
    --ln-icon-bg:  #E8F0FB;
    --ln-icon-clr: #0B4EA2;
    --ln-radius:   8px;
    --ln-card-r:   16px;
    --ln-shadow:   0 8px 40px rgba(9, 45, 92, 0.16);
}

/* ── 2. Reset / Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--atc-text);
    background: var(--atc-bg);
    display: flex;
    flex-direction: column;
}

/* ── 3. Header bar ────────────────────────────────────────────────── */
.ln-header {
    background: #fff;
    border-bottom: 1px solid rgba(9, 45, 92, 0.08);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 16px;
}

.ln-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--atc-navy);
    flex-shrink: 0;
}

.ln-header-brand img {
    height: 38px;
    width: auto;
}

.ln-header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ln-header-brand-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--atc-navy);
}

.ln-header-brand-sub {
    font-size: 11px;
    color: var(--atc-muted);
}

.ln-header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ln-header-contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--atc-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ln-header-contacts a:hover { color: var(--atc-blue); }
.ln-header-contacts .bi { font-size: 14px; color: var(--atc-blue); }

/* ── 4. Nexus block (header + left footer) ────────────────────────── */
.ln-nexus-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    line-height: 1.15;
}

.ln-nexus-of {
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--atc-muted);
}

.ln-nexus-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--atc-navy);
}

.ln-nexus-name em {
    color: var(--atc-red);
    font-style: normal;
}

.ln-nexus-tagline {
    font-size: 9px;
    letter-spacing: 0.04em;
    color: var(--atc-muted);
}

/* ── 5. Page layout ───────────────────────────────────────────────── */
.ln-page {
    flex: 1;
    display: flex;
    min-height: 0;
    width: 100%;
}

/* ── 6. Left panel (info column) ──────────────────────────────────── */
.ln-left {
    width: 44%;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 48px 52px;
    flex-shrink: 0;
    min-width: 0;
}

.ln-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── 7. Brand title / subtitle ────────────────────────────────────── */
.ln-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    color: var(--atc-navy);
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}

.ln-subtitle {
    font-size: 16px;
    color: var(--atc-muted);
    margin: 0 0 36px;
    font-weight: 400;
}

/* ── 8. Benefits list ─────────────────────────────────────────────── */
.ln-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ln-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ln-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ln-icon-bg);
    color: var(--ln-icon-clr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ln-benefit-label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--atc-text);
    line-height: 1.2;
    margin: 0 0 3px;
}

.ln-benefit-desc {
    font-size: 13px;
    color: var(--atc-muted);
    margin: 0;
    line-height: 1.45;
}

/* ── 9. Left panel footer ─────────────────────────────────────────── */
.ln-left-footer {
    margin-top: 44px;
    font-size: 12px;
    color: var(--atc-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ln-left-footer .ln-nexus-link {
    align-items: flex-start;
}

.ln-left-footer .ln-nexus-name {
    font-size: 13px;
}

.ln-left-footer-sep {
    color: rgba(9, 45, 92, 0.2);
}

.ln-left-footer-nexus {
    align-items: flex-start;
}

.ln-nexus-name--sm {
    font-size: 13px;
}

/* ── 10. Right panel (warehouse background) ───────────────────────── */
.ln-right {
    flex: 1;
    position: relative;
    background-image: url('/img/home/warehouse-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    min-width: 0;
}

.ln-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        #ffffff                   0%,
        #ffffff                  30%,
        rgba(255,255,255,.88)    42%,
        rgba(255,255,255,.25)    58%,
        rgba(255,255,255,0)      70%
    );
    pointer-events: none;
}

/* ── 11. Login card ───────────────────────────────────────────────── */
.ln-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--ln-card-r);
    box-shadow: var(--ln-shadow);
    width: 380px;
    max-width: 100%;
    padding: 32px;
}

/* ── 12. Error alert ──────────────────────────────────────────────── */
.ln-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--ln-radius);
    background: rgba(215, 40, 47, 0.07);
    border: 1px solid rgba(215, 40, 47, 0.28);
    color: var(--atc-red);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ln-alert .bi {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── 13. Company selector block ───────────────────────────────────── */
.ln-company-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(9, 45, 92, 0.12);
    border-radius: 10px;
    background: var(--atc-bg);
    margin-bottom: 24px;
}

.ln-company-icon {
    color: var(--atc-blue);
    font-size: 20px;
    flex-shrink: 0;
}

.ln-company-text {
    flex: 1;
    min-width: 0;
}

.ln-company-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--atc-muted);
    line-height: 1;
    margin-bottom: 3px;
}

.ln-company-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--atc-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ln-company-arrow {
    color: var(--atc-muted);
    font-size: 15px;
    flex-shrink: 0;
}

/* ── 13. Form fields ──────────────────────────────────────────────── */
.ln-field {
    margin-bottom: 16px;
}

.ln-field > label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--atc-muted);
    margin-bottom: 6px;
}

.ln-input-wrap {
    position: relative;
}

.ln-input-wrap > .bi:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--atc-muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.ln-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1.5px solid rgba(9, 45, 92, 0.16);
    border-radius: var(--ln-radius);
    font-size: 15px;
    font-family: 'Mulish', sans-serif;
    color: var(--atc-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.ln-input:focus {
    border-color: var(--atc-blue);
    box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}

.ln-input::placeholder { color: #b0bac6; }

.ln-input.is-invalid {
    border-color: var(--atc-red);
}

.ln-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(215, 40, 47, 0.12);
}

.ln-input-wrap .invalid-feedback {
    font-size: 12px;
    color: var(--atc-red);
    margin-top: 4px;
}

/* ── 14. Eye toggle button ────────────────────────────────────────── */
.ln-eye-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border: none;
    background: transparent;
    color: var(--atc-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--ln-radius) var(--ln-radius) 0;
    transition: color 0.2s;
}

.ln-eye-btn:hover { color: var(--atc-blue); }

/* ── 15. Remember / forgot row ────────────────────────────────────── */
.ln-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 8px;
}

.ln-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    color: var(--atc-muted);
    user-select: none;
}

.ln-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--atc-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.ln-forgot {
    font-size: 13px;
    color: var(--atc-blue);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.ln-forgot:hover { opacity: 0.7; }

/* ── 16. Buttons ──────────────────────────────────────────────────── */
.ln-btn-primary {
    display: block;
    width: 100%;
    height: 48px;
    background: var(--atc-navy);
    color: #fff;
    border: none;
    border-radius: var(--ln-radius);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.ln-btn-primary:hover {
    background: var(--atc-blue);
    box-shadow: 0 4px 16px rgba(11, 78, 162, 0.3);
}

.ln-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: transparent;
    color: var(--atc-navy);
    border: 1.5px solid rgba(9, 45, 92, 0.4);
    border-radius: var(--ln-radius);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ln-btn-outline:hover {
    background: var(--atc-navy);
    color: #fff;
    border-color: var(--atc-navy);
}

/* ── 17. Divider with text ────────────────────────────────────────── */
.ln-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--atc-muted);
}

.ln-divider::before,
.ln-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(9, 45, 92, 0.1);
}

/* ── 18. Tablet 768–991px ─────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
    .ln-left {
        width: 50%;
        padding: 40px 36px;
    }

    .ln-title { font-size: 34px; }
    .ln-subtitle { margin-bottom: 28px; }

    .ln-right { padding: 32px 24px; }

    .ln-card { width: 340px; }
}

/* ── 19. Mobile ≤767px ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ln-header {
        padding: 0 16px;
        height: 56px;
    }

    .ln-header-contacts,
    .ln-header-brand-text { display: none; }

    .ln-header-brand img { height: 34px; }

    .ln-nexus-name { font-size: 14px; }

    .ln-page { flex-direction: column; }

    .ln-right {
        order: 1;
        flex: 0 0 auto;
        min-height: 260px;
        padding: 28px 16px;
        justify-content: center;
        align-items: center;
    }

    .ln-right::before {
        background: rgba(255, 255, 255, 0.88);
    }

    .ln-card {
        width: 100%;
        max-width: 420px;
        padding: 24px 20px;
    }

    .ln-left {
        order: 2;
        width: 100%;
        padding: 32px 20px 24px;
    }

    .ln-left-content { justify-content: flex-start; }

    .ln-title { font-size: 30px; margin-bottom: 8px; }
    .ln-subtitle { font-size: 14px; margin-bottom: 24px; }

    .ln-benefits { gap: 16px; }

    .ln-benefit-icon { width: 40px; height: 40px; font-size: 18px; }

    .ln-left-footer { margin-top: 28px; }
}
