/* =====================================================
   POL-BUD CARGO — LOGIN PAGE
   Version 6
===================================================== */

:root {
    --bg: #080d17;
    --bg-light: #101a2b;
    --panel: #0d1625;
    --panel-light: #142238;
    --blue: #2389ff;
    --blue-light: #55adff;
    --blue-dark: #1261c5;
    --white: #ffffff;
    --text: #e8eef8;
    --muted: #8b9bb1;
    --border: rgba(255,255,255,0.09);
    --danger: #ff5c68;
    --font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* BACKGROUND */

.background-glow {
    position: fixed;
    width: 650px;
    height: 650px;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(35,137,255,0.13);
    filter: blur(130px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    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: 45px 45px;
    pointer-events: none;
    z-index: 0;
}

/* NAVBAR */

.navbar {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 85px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8,13,23,0.88);
    backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.brand strong,
.footer-brand strong {
    color: var(--blue-light);
}

.brand-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 9px;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 19px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

.home-button:hover {
    border-color: var(--blue);
    background: rgba(35,137,255,0.1);
    transform: translateY(-2px);
}

.home-icon {
    font-size: 19px;
    color: var(--blue-light);
}

.home-arrow {
    color: var(--blue-light);
}

/* MAIN LAYOUT */

.login-layout {
    position: relative;
    z-index: 1;
    width: min(1180px, 90%);
    margin: 65px auto;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    min-height: 560px;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(13,22,37,0.85);
    box-shadow: 0 30px 100px rgba(0,0,0,0.35);
}

/* LEFT PANEL */

.visual-panel {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 55px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(9,20,37,0.3), rgba(4,10,20,0.96)),
        radial-gradient(circle at 70% 25%, rgba(35,137,255,0.3), transparent 50%),
        #101e32;
}

.visual-panel::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 30px;
    right: -130px;
    border: 1px solid rgba(85,173,255,0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(85,173,255,0.035),
        0 0 0 75px rgba(85,173,255,0.025);
}

.visual-panel::after {
    content: "POL-BUD";
    position: absolute;
    top: 100px;
    right: -20px;
    color: rgba(255,255,255,0.025);
    font-size: 90px;
    font-weight: 800;
    letter-spacing: 5px;
    transform: rotate(-90deg);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(5,11,21,0.98) 0%,
        rgba(5,11,21,0.35) 65%,
        transparent 100%
    );
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.small-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #27d995;
    border-radius: 50%;
    box-shadow: 0 0 12px #27d995;
}

.visual-content h1 {
    margin-top: 25px;
    color: var(--white);
    font-size: clamp(36px, 4vw, 53px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
}

.visual-content h1 span {
    color: var(--blue-light);
}

.visual-content p {
    max-width: 410px;
    margin-top: 23px;
    color: #aebbd0;
    font-size: 14px;
    line-height: 1.9;
}

.visual-bottom {
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.13);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #74859c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* RIGHT PANEL */

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 45px;
    background: rgba(9,16,28,0.94);
}

.login-card {
    width: 100%;
    max-width: 390px;
}

.form-heading {
    margin-bottom: 35px;
}

.form-heading .small-label {
    margin-bottom: 15px;
}

.form-heading h2 {
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.form-heading p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ERROR */

.login-message {
    display: none;
    margin-bottom: 22px;
    padding: 14px 16px;
    color: #ff9ba3;
    background: rgba(255,92,104,0.1);
    border: 1px solid rgba(255,92,104,0.25);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #dce5f2;
    font-size: 12px;
    font-weight: 700;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 15px;
    opacity: 0.75;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 53px;
    padding: 0 16px 0 48px;
    outline: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: #111d2e;
    color: var(--white);
    font-family: var(--font);
    font-size: 13px;
    transition: 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #687b94;
}

.input-wrapper input:focus {
    border-color: var(--blue);
    background: #14243a;
    box-shadow: 0 0 0 3px rgba(35,137,255,0.12);
}

/* OPTIONS */

.form-options {
    margin: 5px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a6b4c8;
    font-size: 11px;
    cursor: pointer;
}

.remember input {
    width: 14px;
    height: 14px;
    accent-color: var(--blue);
    cursor: pointer;
}

.secure-label {
    color: #71839b;
    font-size: 10px;
}

/* BUTTON */

.login-button {
    width: 100%;
    min-height: 54px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-radius: 8px;
    background: linear-gradient(110deg, var(--blue-dark), var(--blue));
    color: var(--white);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(35,137,255,0.2);
    transition: 0.25s ease;
}

.login-button span {
    font-size: 21px;
    transition: transform 0.25s ease;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(35,137,255,0.35);
}

.login-button:hover span {
    transform: translateX(5px);
}

.login-button:active {
    transform: translateY(0);
}

/* FOOTER LOGIN */

.login-footer {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.login-footer strong {
    color: var(--blue-light);
    font-size: 11px;
}

/* PAGE FOOTER */

.page-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 55px 7% 20px;
    background: #070c15;
    border-top: 1px solid var(--border);
}

.page-footer-content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.9fr;
    gap: 65px;
}

.page-footer-brand p {
    max-width: 350px;
    margin-top: 18px;
    color: #8493a8;
    font-size: 12px;
    line-height: 1.9;
}

.footer-brand {
    font-size: 16px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 7px;
}

.page-footer-links,
.page-footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.page-footer-links h3,
.page-footer-info h3 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.page-footer-links a,
.page-footer-info span {
    color: #8292a9;
    text-decoration: none;
    font-size: 11px;
    transition: 0.2s ease;
}

.page-footer-links a:hover {
    color: var(--blue-light);
    transform: translateX(3px);
}

.page-footer-bottom {
    max-width: 1180px;
    margin: 45px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #62738a;
    font-size: 9px;
    letter-spacing: 0.7px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr 0.9fr;
        width: 94%;
    }

    .visual-panel {
        padding: 35px;
    }

    .form-panel {
        padding: 40px 28px;
    }

    .page-footer-content {
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .navbar {
        min-height: 72px;
        padding: 0 5%;
    }

    .brand {
        font-size: 14px;
        gap: 9px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .home-button {
        padding: 10px 12px;
        font-size: 11px;
    }

    .login-layout {
        width: 92%;
        margin: 30px auto;
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: 310px;
        padding: 35px 28px;
    }

    .visual-content h1 {
        font-size: 38px;
    }

    .visual-content p {
        font-size: 12px;
    }

    .visual-bottom {
        margin-top: 28px;
    }

    .form-panel {
        padding: 40px 28px;
    }

    .form-heading h2 {
        font-size: 27px;
    }

    .page-footer {
        padding: 40px 6% 20px;
    }

    .page-footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .page-footer-brand {
        grid-column: 1 / -1;
    }

    .page-footer-bottom {
        flex-direction: column;
        line-height: 1.7;
    }
}

@media (max-width: 420px) {
    .home-button {
        gap: 6px;
        padding: 9px;
    }

    .home-icon {
        font-size: 16px;
    }

    .visual-panel {
        min-height: 290px;
        padding: 28px 22px;
    }

    .visual-content h1 {
        font-size: 33px;
    }

    .visual-bottom {
        font-size: 8px;
    }

    .form-panel {
        padding: 35px 20px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-footer-content {
        grid-template-columns: 1fr;
    }

    .page-footer-brand {
        grid-column: auto;
    }
}

