:root {
    --palusa-blue: #2777ea;
    --palusa-blue-bright: #0876ff;
    --navy: #00163e;
    --navy-deep: #00102f;
    --ink: #071638;
    --muted: #7d8ca8;
    --line: #d9e0eb;
    --canvas: #eef2f8;
    --danger: #c7344b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 1.05fr; 
    width: 100%;
    min-height: 100vh;
    margin: 0; 
    overflow: hidden;
    background: #fff;
    border-radius: 0;
    box-shadow: none; 
}

.brand-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 50% 42%, #06265e 0, #001945 42%, var(--navy-deep) 75%);
}

.brand-shape {
    position: absolute;
    display: block;
    border-radius: 42% 58% 63% 37%;
    pointer-events: none;
}

.brand-shape--top {
    width: 440px;
    height: 310px;
    top: -185px;
    right: -120px;
    transform: rotate(28deg);
    background: linear-gradient(145deg, #073986, #006bff);
    border: 1px solid rgba(64, 157, 255, .32);
}

.brand-shape--bottom {
    width: 430px;
    height: 440px;
    left: -240px;
    bottom: -255px;
    transform: rotate(40deg);
    background: linear-gradient(145deg, #0564ef, #0075ff);
    box-shadow: 110px -35px 0 rgba(8, 44, 103, .78);
}

.dot-pattern {
    position: absolute;
    width: 72px;
    height: 120px;
    opacity: .5;
    background-image: radial-gradient(circle, #0876ff 1.5px, transparent 1.8px);
    background-size: 14px 14px;
}

.dot-pattern--left {
    top: 105px;
    left: 16px;
}

.dot-pattern--right {
    right: 12px;
    bottom: 120px;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: min(440px, 84%);
    text-align: center;
}

.brand-logo-wrap {
    display: grid;
    place-items: center;
    width: 178px;
    height: 178px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #fff;
    border: 7px solid #1c72f1;     
    box-shadow: 0 0 0 4px #0c4cb2, 0px 16px 40px rgba(255, 255, 255, 0.4);
}

.brand-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.brand-name {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 650;
    letter-spacing: .035em;
}

.brand-divider {
    display: block;
    width: 43px;
    height: 4px;
    margin: 22px auto;
    border-radius: 99px;
    
    /* Degradado lineal: brillante en el centro y más oscuro en los extremos */
    background: linear-gradient(40deg, #0d3880 0%, #1e75ff 50%, #0d3880 100%);
    box-shadow: 0 0 10px 0.5px rgba(30, 117, 255, 0.7);
}

.brand-message {
    margin: 0;
    color: #bdc8db;
    font-size: 16px;
    line-height: 1.55;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 54px;
    color: #c5d0e2;
    font-size: 13px;
    line-height: 1.4;
}

.brand-features p {
    margin: 8px 0 0;
    font-size: 16px;
}

.feature-mark {
    display: block;
    color: #0876ff;
    font-size: 40px;
    line-height: 1;
}

.form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: 70px clamp(42px, 7vw, 132px);
    background: #fff;
}

.corner-logo {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 105px;
    height: 105px;
    object-fit: contain;
}

.login-card {
    width: min(100%, 465px);
}

.mobile-logo {
    display: none;
    width: 50%;
    height: 50%;
    margin: 0 auto 24px;
    margin-top:10px ;
    object-fit: contain;
}

.login-card h1 {
    margin: 0;
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.subtitle {
    margin: 10px 0 52px;
    color: var(--muted);
    font-size: 15px;
}

.login-card label {
    display: block;
    margin: 0 0 9px;
    color: #64738f;
    font-size: 20px;
}

.input-wrap {
    position: relative;
    margin-bottom: 27px;
}

.input-wrap input {
    width: 100%;
    height: 58px;
    padding: 0 55px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap input::placeholder {
    color: #98a4b8;
}

.input-wrap input:focus {
    border-color: var(--palusa-blue);
    box-shadow: 0 0 0 4px rgba(39, 119, 234, .12);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    translate: 0 -50%;
    color: #71819d;
    font-size: 18px;
    pointer-events: none;
}
.svg-pasword{
   bottom: -12px;
   left: -3px;
   position: absolute;
}
.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    translate: 0 -50%;
    padding: 8px 10px;
    color: #60708d;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.remember-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: -4px 0 36px !important;
    cursor: pointer;
}

.remember-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--palusa-blue);
}

.submit-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 58px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #096be9, #0876ff);
    cursor: pointer;
    font-weight: 650;
    transition: translate .18s ease, box-shadow .18s ease;
}

.submit-button span:last-child {
    position: absolute;
    margin-left: 390px;
    font-size: 24px;
    font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
    .submit-button:hover {
        box-shadow: 0 15px 28px rgba(39, 119, 234, .28);
    }
}

.submit-button { touch-action: manipulation; }
.submit-button:active { opacity: .85; }
.submit-button:disabled { opacity: .65; cursor: wait; }
#login-error { margin: 0 0 20px; }
.input-wrap input[aria-invalid="true"] { border-color: var(--danger); }

.submit-button:focus-visible {
    outline: 3px solid rgba(39, 119, 234, .35);
    outline-offset: 3px;
}

.recovery-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
    padding: 0px 40px 0px 40px;
}

.alert {
    margin: -28px 0 24px;
    padding: 13px 15px;
    color: var(--danger);
    border: 1px solid rgba(199, 52, 75, .2);
    border-radius: 8px;
    background: rgba(199, 52, 75, .07);
    font-size: 14px;
}

@media (max-width: 920px) {
    body {
        background: #fff;
    }

    .login-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
        padding: 48px 24px;
    }

    .corner-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .login-card {
        max-width: 460px;
    }

    .login-card h1,
    .subtitle {
        text-align: center;
    }

    .subtitle {
        margin-bottom: 42px;
    }
}

@media (max-width: 520px) {
    .subtitle,label,span{
        font-size: 18px;
    }
    .form-panel {
        align-items: start;
        padding-top: 42px;
    }

    .login-card h1 {
        font-size: 30px;
    }

    .subtitle {
        line-height: 1.5;
        padding: 0px 45px 0px 45px;
    }

    .input-wrap input,
    .submit-button {
        height: 54px;
    }

    .submit-button span:last-child {
        position: static;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
.success { margin: -28px 0 24px; padding: 13px 15px; color: #087b48; border: 1px solid rgba(14,179,100,.25); border-radius: 8px; background: rgba(14,179,100,.08); font-size: 14px; }
