:root { color-scheme: light; --ink: #183b45; --teal: #006174; }
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-color: #e5eff0;
    background-image:
        radial-gradient(ellipse at 4% 0%, #a8dce120 0%, transparent 48%),
        radial-gradient(ellipse at 100% 100%, #00546818 0%, transparent 60%),
        linear-gradient(115deg, #edf3f3d9 15%, #f3f6f6e6 60%, #e3eef0d9 100%),
        url('../../resources/login-background.png');
    background-position: center, center, center, left center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    isolation: isolate;
}
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 85% 100%, #17657824, transparent 55%); }
button, input { font: inherit; }
.login-header { padding: 36px 6%; }
.institution-logo { display: block; width: 245px; height: 74px; object-fit: contain; object-position: left; }
.login-layout { flex: 1; display: grid; grid-template-columns: 1fr 550px; align-items: center; gap: 70px; width: min(1260px, 90%); margin: 30px auto 70px; }
.login-intro { align-self: end; padding-bottom: 32px; }
.intro-identity { display: flex; align-items: center; gap: 7px; margin-bottom: 25px; }
.intro-identity span { display: grid; place-items: center; width: 72px; height: 56px; margin-right: 8px; border-radius: 18px; background: var(--teal); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.5px; box-shadow: 0 5px 12px #00617418; }
.intro-identity i { width: 7px; height: 7px; border-radius: 50%; background: #52959f; }
.intro-identity i:nth-of-type(2) { background: #86b5bc; }
.intro-identity i:nth-of-type(3) { background: #b5d0d4; }
h1 { margin: 0 0 18px; font-size: clamp(34px, 3.5vw, 50px); font-weight: 700; line-height: 1.18; letter-spacing: -1.3px; color: #123c48; text-wrap: balance; }
.login-intro p { font-size: 15px; font-weight: 600; color: #365660; margin: 0; line-height: 1.7; }
.login-card { position: relative; overflow: hidden; background: linear-gradient(155deg, #eaf5f5 0%, #fff 34%, #fff 76%, #f1f7f7 100%); border: 2px solid #c6dcdf; border-radius: 32px; box-shadow: 0 16px 40px #164c5712; }
.welcome-banner { padding: 23px 38px; background: var(--teal); color: #fff; font-size: 30px; font-weight: 700; line-height: 1.4; text-align: center; }
.form-container { padding: 42px 44px 38px; }
h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -.6px; }
.acceso-ayuda { margin: 0 0 30px; color: #4c6269; font-size: 14px; font-weight: 500; line-height: 1.7; }
form > label:not(.recordar-correo) { display: block; margin: 20px 0 9px; font-size: 13px; font-weight: 600; }
input[type=email], input[type=password], input[type=text] { width: 100%; min-width: 0; height: 60px; padding: 0 18px; border: 2px solid #bdcdd1; border-radius: 18px; background: #fff; color: var(--ink); font-size: 14px; outline: none; }
input::placeholder { color: #849196; opacity: 1; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #00617412; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; right: 6px; top: 6px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: transparent; color: #647a81; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle svg { width: 21px; height: 21px; stroke-width: 2; }
.password-toggle:hover { background: #edf3f4; }
.eye-slash { display: none; }
.password-toggle[aria-pressed=true] .eye-slash { display: block; }
.recordar-correo { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 20px 0 26px; font-size: 13px; font-weight: 500; cursor: pointer; }
.recordar-correo input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.submit-button { width: 100%; min-height: 60px; border: 0; border-radius: 20px; background: linear-gradient(110deg, #004f62, #087f8c); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: filter .18s; }
.submit-button:hover { filter: brightness(1.08); }
.submit-button:active { filter: brightness(.95); }
.campus-access { margin-top: 25px; }
.campus-divider { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; color: #526b73; font-size: 12px; font-weight: 500; }
.campus-divider::before, .campus-divider::after { content: ''; height: 1px; flex: 1; background: #cfdee1; }
.campus-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 18px; border: 2px solid #9dbfc7; border-radius: 20px; background: #eef6f6; color: #005569; font-size: 14px; font-weight: 600; text-decoration: none; }
.campus-button:hover { background: #dfedef; border-color: var(--teal); }
.campus-button:focus-visible { outline: 3px solid #319eb4; outline-offset: 3px; }
.login-feedback:empty { display: none; }
.login-feedback { margin: 18px 0 0; padding: 12px 15px; border-radius: 14px; background: #f1f5f5; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
button:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid #319eb4; outline-offset: 3px; }
.access-help { margin: 25px 0 0; padding-top: 21px; border-top: 2px solid #edf0f1; font-size: 12px; font-weight: 500; color: #4c6269; line-height: 1.8; }
.login-footer { width: 88%; margin: 0 auto; padding: 20px 0; font-size: 11px; color: #4e686f; }
.login-intro::after { content: ''; display: block; width: min(280px, 80%); height: 2px; margin-top: 26px; background: linear-gradient(90deg, #659da7, #659da700); }
.acceso-error { padding: 12px; border: 2px solid #efcccc; border-radius: 18px; background: #fff3f3; color: #a13434; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .login-layout { grid-template-columns: 1fr 450px; gap: 30px; } }
@media (max-width: 700px) {
    body { background-position: center, center, center, 24% center; }
    .login-header { padding: 24px 6%; }
    .institution-logo { width: 210px; height: 60px; }
    .login-layout { width: min(550px, 92%); grid-template-columns: 1fr; gap: 25px; margin: 15px auto 35px; }
    .login-intro { padding: 0; }
    h1 { font-size: 30px; letter-spacing: -.8px; }
    h1 br { display: none; }
    .login-intro p { font-size: 12px; }
    .form-container { padding: 28px 24px; }
    .welcome-banner { padding: 20px 24px; font-size: 27px; }
    .login-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .submit-button { transition: none; } }
