:root {
    --pms-ink: #172033;
    --pms-muted: #657187;
    --pms-line: #dfe5ee;
    --pms-blue: #155eef;
    --pms-cyan: #0ea5b7;
    --pms-green: #0f9f6e;
    --pms-orange: #f59e0b;
    --pms-panel: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.pms-login-page {
    width: 100%;
    margin: 0;
    color: var(--pms-ink);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(120deg, rgba(9, 33, 58, 0.90), rgba(13, 55, 76, 0.68)),
        url("../../images/vintage-interior-with-old-fashioned-wooden-desk-and-big-map-4338095.jpg") center/cover no-repeat fixed;
}

.pms-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    min-height: 100vh;
}

.pms-login-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    min-height: 100vh;
    padding: 42px clamp(28px, 5vw, 76px);
    color: #fff;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
}

.brand-lockup img {
    width: 148px;
    max-height: 50px;
    object-fit: contain;
}

.brand-lockup span {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.38);
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #8ee7f1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 4.8vw, 64px);
    font-weight: 800;
    line-height: 1.02;
}

.hero-copy p:last-child {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 860px;
}

.feature-grid article {
    min-height: 128px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
}

.feature-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #09213a;
    background: #fff;
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid strong {
    margin-bottom: 7px;
    font-size: 15px;
}

.feature-grid span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
}

.system-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(5, 19, 34, 0.40);
}

.system-strip div {
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.system-strip div:last-child {
    border-right: 0;
}

.system-strip span,
.system-strip strong {
    display: block;
}

.system-strip span {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.system-strip strong {
    font-size: 14px;
}

.pms-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 34px;
    background: rgba(247, 249, 252, 0.86);
}

.login-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid rgba(222, 229, 239, 0.90);
    border-radius: 8px;
    background: var(--pms-panel);
    box-shadow: 0 24px 70px rgba(18, 29, 49, 0.18);
}

.login-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.login-card-head img {
    width: 86px;
    height: 58px;
    object-fit: contain;
    border: 1px solid var(--pms-line);
    border-radius: 8px;
    background: #fff;
}

.login-card-head p,
.login-card-head h2,
.login-intro {
    margin: 0;
}

.login-card-head p {
    color: var(--pms-cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.login-card-head h2 {
    margin-top: 4px;
    color: var(--pms-ink);
    font-size: 28px;
    font-weight: 800;
}

.login-intro {
    margin-bottom: 28px;
    color: var(--pms-muted);
    font-size: 14px;
    line-height: 1.65;
}

#form_login label {
    display: block;
    margin: 0 0 8px;
    color: #2d3a4f;
    font-size: 13px;
    font-weight: 800;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.input-shell i {
    position: absolute;
    left: 15px;
    color: #8a96a8;
    font-size: 16px;
}

.input-shell .form-control {
    width: 100%;
    height: 50px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--pms-line);
    border-radius: 8px;
    color: var(--pms-ink);
    background: #fff;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-shell .form-control:focus {
    border-color: var(--pms-blue);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--pms-blue), var(--pms-cyan));
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(21, 94, 239, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-login:hover,
.btn-login:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(21, 94, 239, 0.34);
}

.btn-login:disabled {
    cursor: wait;
    opacity: 0.75;
}

.btn-login.is-loading i:before {
    content: "\f110";
}

.btn-login.is-loading i {
    animation: pms-spin 0.9s linear infinite;
}

.login-help {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #d9f0e7;
    border-radius: 8px;
    color: #23614d;
    background: #effaf5;
    font-size: 13px;
    line-height: 1.5;
}

.login-help i {
    margin-top: 2px;
    color: var(--pms-green);
}

@keyframes pms-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .pms-login-shell {
        grid-template-columns: 1fr;
    }

    .pms-login-hero,
    .pms-login-panel {
        min-height: auto;
    }

    .pms-login-hero {
        padding: 30px 24px;
    }

    .pms-login-panel {
        padding: 28px 20px 36px;
    }
}

@media (max-width: 767px) {
    body.pms-login-page {
        background-attachment: scroll;
    }

    .brand-lockup {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .brand-lockup span {
        padding-left: 0;
        border-left: 0;
    }

    .hero-copy h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .hero-copy p:last-child {
        font-size: 15px;
    }

    .feature-grid,
    .system-strip {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: 0;
    }

    .system-strip div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .system-strip div:last-child {
        border-bottom: 0;
    }

    .login-card {
        padding: 24px;
    }

    .login-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
