/* Portal de estudiantes — login local CNCEP */

:root {
    --navy: #0369a1;
    --navy-2: #0284c7;
    --blue-bg: #075985;
    --blue-mid: #0284c7;
    --blue-light: #38bdf8;
    --brand-gold: #f4b426;
    --brand-gold-dark: #d99a12;
    --brand-green: #009640;
    --brand-green-dark: #007a34;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.alumno-login {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--blue-bg);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 15% 20%, rgba(56, 189, 248, 0.40), transparent 60%),
        radial-gradient(ellipse 55% 50% at 85% 75%, rgba(2, 132, 199, 0.32), transparent 55%),
        linear-gradient(145deg, #075985 0%, #0369a1 45%, #0284c7 100%);
    z-index: 0;
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.4;
}

.login-back {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.login-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-card {
    padding: 2.25rem 2rem 2rem;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.login-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.login-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: 0.2rem;
}

.login-brand h1 {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
}

.login-lead {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
}

.login-alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
}

.login-field > span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
}

.login-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    font: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field input:focus {
    outline: none;
    border-color: #0284c7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16);
}

.login-password {
    display: flex;
    gap: 0.45rem;
}

.login-password input {
    flex: 1;
}

.login-toggle {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 10px;
    padding: 0 0.9rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.login-toggle:hover {
    color: var(--navy);
    border-color: #cbd5e1;
}

.login-submit {
    margin-top: 0.35rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, var(--brand-gold) 100%);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.95rem 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 154, 18, 0.32);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.login-submit:hover:not(:disabled) {
    background: var(--brand-gold-dark);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 154, 18, 0.42);
}

.login-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.login-help {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.login-help a {
    color: var(--brand-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.login-help a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.login-aside {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-aside h2 {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.login-aside ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.login-aside li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.45;
}

.login-aside li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.28);
}

@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-aside {
        padding: 1.75rem 1.5rem 2rem;
    }
    .login-card {
        padding: 1.75rem 1.35rem;
    }
    .login-back {
        position: static;
        display: inline-flex;
        margin-bottom: 1rem;
    }
    body.alumno-login {
        place-items: start center;
        padding-top: 1rem;
    }
}
