/* Pranik Logistics — split sign-in, matched to the approved layout */

.login-page {
    margin: 0;
    min-height: 100dvh;
    background: #eef3f8;
    font-family: Inter, system-ui, sans-serif;
    color: #1c2b36;
}

.login-split {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
}

/* ---------- Left story ---------- */

.login-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #f4f8fc;
    background:
        linear-gradient(100deg, rgba(7, 27, 52, 0.94) 0%, rgba(10, 36, 68, 0.78) 38%, rgba(12, 40, 72, 0.28) 68%, rgba(8, 28, 52, 0.15) 100%),
        url("../images/login.jpg") 68% center / cover no-repeat;
    overflow: hidden;
}

.login-hero__body {
    position: relative;
    z-index: 1;
    padding: 36px 48px 20px;
    max-width: 560px;
}

.login-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.login-hero__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.login-hero__brand span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 242, 250, 0.82);
}

.login-hero h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(36px, 3.6vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.login-hero h1 span {
    color: #7ec8f0;
}

.login-hero h1::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.85);
}

.login-hero__lead {
    margin: 0;
    max-width: 38ch;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(236, 244, 250, 0.9);
}

.login-features {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-features__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9fd4f5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 16px;
}

.login-features strong {
    display: block;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
}

.login-features small {
    display: block;
    margin-top: 2px;
    color: rgba(220, 232, 242, 0.78);
    font-size: 12.5px;
}

.login-stats {
    list-style: none;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 22px 28px 20px;
    background: linear-gradient(180deg, rgba(8, 28, 52, 0.15), rgba(6, 22, 44, 0.92) 28%);
    border-radius: 36px 36px 0 0;
}

.login-stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.login-stats__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9fd4f5;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.login-stats strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.login-stats small {
    display: block;
    margin-top: 2px;
    color: rgba(214, 228, 240, 0.75);
    font-size: 11px;
    line-height: 1.2;
}

/* ---------- Right panel ---------- */

.login-panel {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 28px 24px;
    background: #f3f7fb;
    overflow: hidden;
}

.login-panel::before,
.login-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.login-panel::before {
    width: 220px;
    height: 160px;
    top: 24px;
    right: 28px;
    background-image: radial-gradient(rgba(168, 190, 210, 0.7) 1.15px, transparent 1.2px);
    background-size: 16px 16px;
    mask-image: radial-gradient(circle at 70% 40%, #000 10%, transparent 72%);
}

.login-panel::after {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.7), transparent 42%),
        radial-gradient(circle at 60% 55%, rgba(186, 210, 230, 0.55), transparent 62%);
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(20, 48, 78, 0.08);
    padding: 34px 32px 28px;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin: 0 0 6px;
}

.login-brand img {
    width: min(196px, 70%);
    height: auto;
    display: block;
}

.login-lead {
    margin: 0 0 22px;
    text-align: center;
    color: #8b9aab;
    font-size: 14px;
}

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

.login-notice {
    background: #fff8e6;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
    box-shadow: inset 3px 0 0 #f0ad4e;
}

.login-notice__icon {
    color: #d97706;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.login-notice strong,
.login-notice span {
    display: block;
}

.login-notice strong {
    color: #1c2b36;
    font-size: 14px;
    margin-bottom: 4px;
}

.login-notice span {
    color: #6b7c8a;
    font-size: 13px;
    line-height: 1.4;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #243746;
}

.login-control,
.login-password {
    position: relative;
}

.login-control__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aabb8;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.login-card .form-control {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #e3eaf0;
    background: #f7fafc;
    color: #1c2b36;
    font-size: 14.5px;
    padding: 0 14px 0 40px;
    box-shadow: none;
}

.login-card .form-control::placeholder {
    color: #a8b6c4;
}

.login-card .form-control:focus {
    background: #fff;
    border-color: #1a7aad;
    box-shadow: 0 0 0 3px rgba(26, 122, 173, 0.14);
}

.login-password .form-control {
    padding-right: 44px;
}

.login-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8aa0b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.login-eye:hover,
.login-eye:focus-visible {
    color: #074465;
    outline: none;
}

.login-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 13px;
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
    font-size: 13.5px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #5d6d7e;
    font-weight: 500;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0e3a56;
    cursor: pointer;
}

.login-meta a {
    color: #1a73b8;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.login-meta a:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #0e3a56;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.login-submit:hover {
    background: #16486a;
}

.login-submit:focus-visible,
.login-microsoft:focus-visible {
    outline: 3px solid rgba(26, 122, 173, 0.35);
    outline-offset: 2px;
}

.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #a3b0bd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-or::before,
.login-or::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e4ebf1;
}

.login-microsoft {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #e3eaf0;
    background: #fff;
    color: #243746;
    font-size: 14.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.login-microsoft:hover {
    background: #f7fafc;
}

.login-copy {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #93a2b2;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1100px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 0;
    }

    .login-hero__body {
        padding: 28px 22px 8px;
    }

    .login-hero__brand {
        margin-bottom: 20px;
    }

    .login-hero h1 {
        font-size: 34px;
    }

    .login-stats {
        border-radius: 0;
        padding: 16px 18px;
    }

    .login-panel {
        min-height: 0;
        padding: 20px 16px 28px;
    }
}

@media (max-width: 720px) {
    .login-features {
        display: none;
    }

    .login-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px 8px;
    }

    .login-stats strong {
        font-size: 16px;
    }

    .login-card {
        border-radius: 20px;
        padding: 26px 18px 20px;
    }

    .login-meta {
        flex-wrap: wrap;
    }
}

@media (max-height: 820px) and (min-width: 1101px) {
    .login-hero__body {
        padding-top: 24px;
    }

    .login-hero__brand {
        margin-bottom: 18px;
    }

    .login-hero__brand img {
        width: 44px;
        height: 44px;
    }

    .login-hero h1 {
        font-size: 36px;
    }

    .login-features {
        margin-top: 16px;
        gap: 10px;
    }

    .login-card {
        padding-top: 24px;
        padding-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card .form-control,
    .login-submit,
    .login-microsoft {
        transition: none;
    }
}
