:root {
    --brand-blue: #12347f;
    --brand-blue-dark: #071d50;
    --brand-blue-light: #2557b0;
    --brand-yellow: #f5c400;
    --ink: #14213d;
    --muted: #68748a;
    --line: #d9e0ec;
    --paper: #ffffff;
    --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    color: var(--ink);
    background: #eef2f8;
    font-family: "Source Sans Pro", Arial, sans-serif;
}
button, input { font: inherit; }

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(47, 99, 194, .82), transparent 34%),
        radial-gradient(circle at 82% 76%, rgba(9, 31, 83, .92), transparent 42%),
        linear-gradient(145deg, #123b94 0%, #09245f 55%, #06183f 100%);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    transform: rotate(-12deg);
    background: var(--brand-yellow);
    box-shadow: 0 0 38px rgba(245, 196, 0, .22);
}
.brand-panel::before { top: 17%; right: -12%; width: 68%; height: 12px; }
.brand-panel::after { top: 22%; right: -20%; width: 74%; height: 3px; opacity: .62; }

.brand-panel__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.035) 47% 48%, transparent 48% 100%),
        linear-gradient(180deg, transparent 48%, rgba(2, 12, 35, .58));
}

.brand-story {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 76px) clamp(38px, 6vw, 92px);
    flex-direction: column;
    color: #fff;
}
.brand-story__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-signature {
    width: 290px;
    padding: 14px 21px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.brand-signature img { display: block; width: 100%; height: auto; }
.brand-story__tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(4,23,64,.3);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.brand-story__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); box-shadow: 0 0 0 5px rgba(245,196,0,.13); }
.brand-story__content { width: min(100%, 660px); margin: auto 0; padding: clamp(42px, 7vh, 84px) 0; }
.brand-story__eyebrow { margin: 0 0 19px; color: var(--brand-yellow); font-size: .7rem; font-weight: 800; letter-spacing: .19em; }
.brand-story h2 { margin: 0; color: #fff; font-size: clamp(2.25rem, 4.2vw, 4.7rem); font-weight: 750; letter-spacing: -.035em; line-height: .99; }
.brand-story h2 em { color: var(--brand-yellow); font-style: normal; }
.brand-story__lead { max-width: 585px; margin: 27px 0 32px; color: rgba(255,255,255,.78); font-size: clamp(.92rem, 1.25vw, 1.08rem); line-height: 1.72; }
.brand-values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.brand-value {
    display: flex;
    min-height: 78px;
    padding: 15px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.035));
    box-shadow: inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.brand-value__icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; color: var(--brand-blue-dark); background: var(--brand-yellow); font-weight: 900; }
.brand-value strong, .brand-value small { display: block; }
.brand-value strong { color: #fff; font-size: .79rem; }
.brand-value small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: .64rem; }
.brand-story__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.legacy-mark { display: flex; align-items: center; gap: 14px; }
.legacy-mark > strong { color: var(--brand-yellow); font-size: 2.7rem; line-height: .8; }
.legacy-mark sup { font-size: 1rem; }
.legacy-mark span { color: rgba(255,255,255,.7); font-size: .66rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }
.brand-story__footer > p { margin: 0; color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.5; text-align: right; }
.brand-story__footer > p strong { color: #fff; }

.access-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 46px clamp(30px, 5vw, 78px);
    border-top: 6px solid var(--brand-yellow);
    background: radial-gradient(circle at 100% 0, rgba(37, 87, 176, .10), transparent 34%), var(--paper);
}
.access-card { width: min(100%, 440px); }
.access-card__header { margin-bottom: 28px; }
.brand-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin: 0 0 28px;
    object-fit: contain;
}
.eyebrow { margin: 0 0 9px; color: var(--brand-blue); font-size: .73rem; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 0 0 9px; color: var(--brand-blue-dark); font-size: clamp(1.9rem, 3vw, 2.45rem); line-height: 1.15; }
.subtitle { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.register-link { display: block; margin: -10px 0 22px; color: var(--muted); font-size: .82rem; text-decoration: none; }
.register-link strong, .form-options a { color: var(--brand-blue); }
.status-message { margin-bottom: 20px; padding: 12px 14px; border-radius: 10px; font-size: .82rem; }
.status-message--success { color: #166534; background: #dcfce7; }
.status-message--error { color: var(--danger); background: #fee4e2; }
.form-field { margin-bottom: 19px; }
.form-field label { display: block; margin-bottom: 8px; font-size: .79rem; font-weight: 700; }
.input-shell { position: relative; }
.input-shell input {
    width: 100%; height: 56px; padding: 0 50px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px; outline: none;
    background: #f8faff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-shell input::placeholder { color: #99a4b5; }
.input-shell input:focus { border-color: var(--brand-blue-light); box-shadow: 0 0 0 4px rgba(37,87,176,.13); background: #fff; }
.input-icon { position: absolute; z-index: 1; top: 50%; left: 18px; width: 17px; height: 17px; transform: translateY(-50%); }
.input-icon--user { border: 2px solid #66758d; border-radius: 50%; }
.input-icon--user::after { position: absolute; top: 12px; left: -5px; width: 23px; height: 11px; border: 2px solid #66758d; border-bottom: 0; border-radius: 14px 14px 0 0; content: ""; }
.input-icon--lock { top: 30px; height: 14px; border: 2px solid #66758d; border-radius: 3px; }
.input-icon--lock::before { position: absolute; top: -10px; left: 2px; width: 9px; height: 10px; border: 2px solid #66758d; border-bottom: 0; border-radius: 8px 8px 0 0; content: ""; }
.input-icon--email { width: 19px; height: 14px; border: 2px solid #66758d; border-radius: 3px; }
.input-icon--email::after { position: absolute; top: -1px; left: 2px; width: 11px; height: 11px; transform: rotate(45deg); border-right: 2px solid #66758d; border-bottom: 2px solid #66758d; content: ""; }
.password-toggle { position: absolute; top: 50%; right: 12px; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.password-toggle span { position: absolute; top: 13px; left: 8px; width: 22px; height: 13px; border: 2px solid #66758d; border-radius: 50% / 60%; }
.password-toggle span::after { position: absolute; top: 3px; left: 8px; width: 4px; height: 4px; border-radius: 50%; background: #66758d; content: ""; }
.form-field--error input { border-color: var(--danger); }
.field-error { display: block; margin-top: 7px; color: var(--danger); font-size: .75rem; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 5px 0 26px; font-size: .77rem; }
.remember-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-option input { width: 16px; height: 16px; accent-color: var(--brand-blue); }
.form-options a { font-weight: 600; text-decoration: none; }
.login-button {
    display: flex; width: 100%; height: 56px; align-items: center; justify-content: center; gap: 12px;
    color: #fff; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue-dark));
    box-shadow: 0 13px 26px rgba(10,43,111,.25); font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.login-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(10,43,111,.31); }
.button-arrow { color: var(--brand-yellow); font-size: 1.25rem; }
.login-button:focus-visible, .password-toggle:focus-visible, a:focus-visible { outline: 3px solid rgba(245,196,0,.48); outline-offset: 3px; }
.back-to-login { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 22px auto 0; color: var(--muted); font-size: .78rem; font-weight: 600; text-decoration: none; }
.back-to-login:hover { color: var(--brand-blue); }
footer { margin-top: 32px; color: #8b96a8; font-size: .68rem; line-height: 1.5; text-align: center; }
.developer-signature{display:flex;margin-top:24px;padding:11px;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e0e6ef;border-radius:12px;background:#f8faff}.developer-signature__identity{display:flex;min-width:0;align-items:center;gap:10px}.developer-signature__identity img{width:64px;height:42px;flex:0 0 64px;border-radius:7px;object-fit:cover}.developer-signature__identity div{display:flex;min-width:0;flex-direction:column}.developer-signature__identity small{color:#8792a3;font-size:.58rem;text-transform:uppercase;letter-spacing:.06em}.developer-signature__identity strong{color:#26364f;font-size:.72rem}.developer-signature__identity span{color:#6f7c8f;font-size:.64rem}.developer-signature__whatsapp{display:flex;min-width:112px;padding:8px 10px;align-items:center;justify-content:center;gap:7px;border-radius:9px;color:#fff;background:#168c55;text-decoration:none;transition:background .2s,transform .2s}.developer-signature__whatsapp:hover{color:#fff;background:#117645;transform:translateY(-1px)}.developer-signature__whatsapp svg{width:18px;height:18px;fill:currentColor}.developer-signature__whatsapp span{display:flex;flex-direction:column}.developer-signature__whatsapp small{font-size:.52rem;line-height:1.1;opacity:.82}.developer-signature__whatsapp strong{font-size:.68rem;line-height:1.2}

@media (max-width: 900px) {
    .login-page { grid-template-columns: minmax(270px,.72fr) minmax(410px,1fr); }
    .brand-story { padding: 34px 28px; }
    .brand-signature { width: 225px; }
    .brand-story__tag, .brand-values, .brand-story__footer > p { display: none; }
    .brand-story h2 { font-size: clamp(2rem,5vw,3.2rem); }
}
@media (max-width: 720px) {
    .login-page { display: block; min-height: 100vh; background: linear-gradient(145deg,var(--brand-blue),var(--brand-blue-dark)); }
    .brand-panel { display: none; }
    .access-panel { min-height: 100vh; padding: 24px 18px; border-top-width: 5px; background: transparent; }
    .access-card { padding: 30px 24px; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
    .brand-logo { width: min(100%,270px); margin-bottom: 22px; }
}
@media (max-width: 420px) {
    .access-card { padding: 26px 18px; }
    .form-options { align-items: flex-start; flex-direction: column; gap: 12px; }
    .developer-signature{align-items:stretch;flex-direction:column}.developer-signature__whatsapp{width:100%}
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.developer-signature__identity img{width:112px;height:42px;flex-basis:112px;border-radius:0;object-fit:contain}
.developer-signature__exclusive{display:inline-flex!important;width:max-content;margin-top:3px;padding:3px 7px;border:1px solid rgba(166,119,0,.25);border-radius:999px;color:#775700!important;background:#f7df8a;font-size:.55rem!important;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
