@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --azul: #1670CD;
    --azul-oscuro: #0b3972;
    --amarillo: #FFCC00;
    --texto: #14243b;
    --muted: #718096;
    --borde: #dde5ef;
    --fondo: #f5f8fc;
    --blanco: #ffffff;
    --error: #b42318;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--texto);
    background: var(--fondo);
    font-family: 'Open Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(370px, 44%) 1fr;
}

.login-brand {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 84px);
    display: flex;
    align-items: flex-end;
    color: white;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,204,0,.28), transparent 30%),
        linear-gradient(145deg, #0a2d5a 0%, #1670CD 58%, #0d4d93 100%);
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.login-brand::before {
    width: 42vw;
    height: 42vw;
    top: -18vw;
    right: -17vw;
}

.login-brand::after {
    width: 26vw;
    height: 26vw;
    left: -11vw;
    bottom: -9vw;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 54%, rgba(255,255,255,.045) 54% 55%, transparent 55%),
        linear-gradient(45deg, transparent 68%, rgba(255,204,0,.08) 68%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.brand-logo-link {
    display: inline-block;
    margin-bottom: clamp(46px, 10vh, 110px);
}

.brand-logo {
    width: clamp(190px, 22vw, 315px);
    height: auto;
    max-height: 150px;
    object-fit: contain;
    object-position: left center;
}

.brand-copy span,
.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 800;
}

.brand-copy span { color: var(--amarillo); }

.brand-copy h1 {
    margin: 9px 0 12px;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(58px, 7vw, 100px);
    line-height: .88;
    letter-spacing: .015em;
    font-weight: 400;
}

.brand-copy p {
    max-width: 400px;
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}

.login-panel {
    min-height: 100vh;
    padding: 40px clamp(24px, 8vw, 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(22,112,205,.07), transparent 28%),
        var(--blanco);
}

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

.mobile-logo { display: none; }

.login-heading { margin-bottom: 34px; }

.eyebrow { color: var(--azul); }

.login-heading h2 {
    margin: 8px 0 8px;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(50px, 6vw, 70px);
    line-height: 1;
    font-weight: 400;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    color: var(--error);
    background: #fff1f0;
    border: 1px solid #ffd2ce;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.login-form { display: grid; gap: 21px; }

.field {
    display: grid;
    gap: 9px;
}

.field > span {
    font-size: 13px;
    font-weight: 700;
}

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

.input-wrap > svg {
    position: absolute;
    left: 17px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8392a7;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-height: 57px;
    padding: 0 52px 0 50px;
    border: 1px solid var(--borde);
    border-radius: 14px;
    outline: none;
    color: var(--texto);
    background: #fbfcfe;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-wrap input::placeholder { color: #a5b0bf; }

.input-wrap input:focus {
    border-color: var(--azul);
    background: white;
    box-shadow: 0 0 0 4px rgba(22,112,205,.11);
}

.password-toggle {
    position: absolute;
    right: 9px;
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #75859a;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover { background: #edf4fb; }

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #5f6f84;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    transition: .18s ease;
}

.remember input:checked + .checkmark {
    border-color: var(--azul);
    background-color: var(--azul);
    background-image:
        linear-gradient(45deg, transparent 45%, white 45% 55%, transparent 55%),
        linear-gradient(-45deg, transparent 42%, white 42% 52%, transparent 52%);
    background-size: 8px 12px, 13px 8px;
    background-position: 3px 4px, 5px 7px;
    background-repeat: no-repeat;
}

.submit-button {
    min-height: 58px;
    padding: 0 19px 0 24px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #10233f;
    background: var(--amarillo);
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255,204,0,.24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255,204,0,.32);
}

.submit-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-note {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7b899c;
    font-size: 12px;
}

.security-note svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--azul);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: #607086;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.back-link:hover { color: var(--azul); }

@media (max-width: 860px) {
    .login-shell { display: block; }
    .login-brand { display: none; }
    .login-panel {
        min-height: 100svh;
        padding: 30px 22px;
        align-items: center;
    }
    .login-card { max-width: 480px; }
    .mobile-logo {
        display: block;
        margin-bottom: 32px;
    }
    .mobile-logo img {
        display: block;
        max-width: 185px;
        max-height: 94px;
        margin: 0 auto;
        object-fit: contain;
    }
}

@media (max-width: 420px) {
    .login-panel { padding: 24px 18px; }
    .login-heading { margin-bottom: 28px; }
    .input-wrap input { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.forgot-link {
    color: var(--azul);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.forgot-link:hover {
    text-decoration: underline;
}

.alert-success {
    color: #176b42;
    background: #ecfdf3;
    border-color: #a8e8c4;
}

.reset-login-link {
    text-decoration: none;
    justify-content: center;
}

@media (max-width: 480px) {
    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Tipografías corporativas */
h1,
h2,
h3,
.brand-copy h1,
.login-heading h2,
.submit-button,
.eyebrow,
.brand-copy span {
    font-family: "Bebas Neue", Arial, sans-serif;
}

body,
input,
button,
label,
p,
a,
.alert,
.security-note,
.remember,
.field > span {
    font-family: "Open Sans", Arial, sans-serif;
}

.submit-button,
.eyebrow,
.brand-copy span {
    letter-spacing: .08em;
}
