:root {
    --login-blue: #1268b3;
    --login-blue-dark: #0a3f78;
    --login-blue-soft: #edf7fc;
    --login-green: #2fb86d;
    --login-text: #163b63;
    --login-muted: #6d8399;
    --login-border: #dce8f1;
    --login-background: #f5f9fc;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--login-text);
    background: var(--login-background);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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


/* ---------------------------------------------------------
   Panel de marca
--------------------------------------------------------- */

.login-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 58px 68px 34px;
    color: #ffffff;
    background-image:
        url("/static/images/water-login.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            125deg,
            rgba(4, 39, 82, 0.93) 0%,
            rgba(8, 73, 128, 0.82) 48%,
            rgba(9, 117, 146, 0.58) 100%
        );
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -170px;
    height: 300px;
    border-radius: 50%;
    background:
        linear-gradient(
            180deg,
            rgba(68, 199, 223, 0.24),
            rgba(47, 184, 109, 0.3)
        );
    transform: rotate(-3deg);
}

.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 2;
}

.login-brand-content {
    width: min(100%, 680px);
}

.login-logo {
    display: block;
    width: min(330px, 72%);
    max-height: 150px;
    margin-bottom: 44px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(
            0 18px 30px rgba(0, 27, 57, 0.3)
        );
}

.login-kicker,
.login-form-kicker {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-kicker {
    color: #c2eff6;
}

.login-brand-panel h1 {
    max-width: 680px;
    margin: 0 0 22px;
    font-size: clamp(2.65rem, 4.2vw, 4.65rem);
    line-height: 1.03;
    font-weight: 820;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.login-brand-description {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.7;
}

.login-benefits {
    display: grid;
    gap: 14px;
    max-width: 580px;
    margin-top: 38px;
}

.login-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.login-benefit-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.15rem;
}

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

.login-benefit strong {
    color: #ffffff;
    font-size: 0.92rem;
}

.login-benefit div > span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.login-brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Formulario
--------------------------------------------------------- */

.login-form-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 52px;
    background:
        radial-gradient(
            circle at top right,
            rgba(47, 184, 109, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(18, 104, 179, 0.06),
            transparent 34%
        ),
        #ffffff;
}

.login-form-wrapper {
    width: min(100%, 455px);
}

.login-mobile-brand {
    display: none;
}

.login-form-kicker {
    color: var(--login-blue);
}

.login-form-wrapper h2 {
    margin: 0 0 10px;
    font-size: clamp(2.25rem, 4vw, 3.05rem);
    font-weight: 820;
    letter-spacing: -0.045em;
}

.login-form-description {
    margin: 0 0 34px;
    color: var(--login-muted);
    line-height: 1.65;
}

.login-form .form-label {
    margin-bottom: 8px;
    color: var(--login-text);
    font-size: 0.88rem;
    font-weight: 750;
}

.pilot-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #167044;
    background: #e8f8ef;
    font-size: 0.72rem;
    font-weight: 750;
}

.login-input-group {
    overflow: hidden;
    min-height: 55px;
    border: 1px solid var(--login-border);
    border-radius: 14px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-group:focus-within {
    border-color: var(--login-blue);
    box-shadow:
        0 0 0 4px rgba(18, 104, 179, 0.1);
}

.login-input-group .input-group-text {
    padding-left: 17px;
    padding-right: 10px;
    border: 0;
    color: var(--login-blue);
    background: transparent;
}

.login-input-group .form-control {
    border: 0;
    color: var(--login-text);
    box-shadow: none;
}

.login-input-group .form-control::placeholder {
    color: #9aabba;
}

.pilot-notice {
    display: flex;
    gap: 11px;
    margin: 22px 0;
    padding: 14px 15px;
    border: 1px solid #d4e9f5;
    border-radius: 13px;
    color: #537087;
    background: var(--login-blue-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.pilot-notice i {
    flex-shrink: 0;
    color: var(--login-blue);
    font-size: 1rem;
}

.pilot-notice p {
    margin: 0;
}

.login-submit-button {
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--login-blue),
            #1389b5
        );
    font-weight: 800;
    box-shadow:
        0 15px 30px rgba(18, 104, 179, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-submit-button:hover,
.login-submit-button:focus {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--login-blue-dark),
            var(--login-blue)
        );
    box-shadow:
        0 18px 34px rgba(18, 104, 179, 0.28);
    transform: translateY(-1px);
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 31px 0 20px;
    color: #95a6b6;
}

.login-divider span {
    height: 1px;
    background: var(--login-border);
}

.login-divider small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-support {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--login-border);
    border-radius: 14px;
    color: var(--login-text);
    background: #ffffff;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.login-support:hover {
    color: var(--login-text);
    border-color: #a9d8eb;
    background: #f9fcfe;
    transform: translateY(-1px);
}

.login-support-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: var(--login-green);
    background: #eaf8f0;
    font-size: 1.12rem;
}

.login-support div {
    flex: 1;
}

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

.login-support strong {
    font-size: 0.86rem;
}

.login-support div span {
    margin-top: 2px;
    color: var(--login-blue);
    font-size: 0.82rem;
}

.login-support > i {
    color: #92a5b6;
}

.login-form-footer {
    margin-top: 28px;
    color: #9aacbb;
    font-size: 0.77rem;
    text-align: center;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, 0.85fr);
    }

    .login-brand-panel {
        padding: 50px 46px 30px;
    }

    .login-brand-panel h1 {
        font-size: clamp(2.4rem, 4vw, 3.6rem);
    }
}

@media (max-width: 991.98px) {
    .login-page {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 34px 22px;
    }

    .login-mobile-brand {
        display: block;
        margin-bottom: 35px;
    }

    .login-mobile-brand img {
        width: 240px;
        max-width: 80%;
        max-height: 105px;
        object-fit: contain;
        object-position: left center;
    }
}

@media (max-width: 575.98px) {
    .login-form-panel {
        align-items: start;
        padding-top: 30px;
    }

    .login-form-wrapper h2 {
        font-size: 2.15rem;
    }

    .login-form-description {
        margin-bottom: 28px;
    }
}