/*
 * SIRCE – Login compartido
 * Estilos comunes entre admin/login.php y estudiantes/login.php
 * Cada login define: --login-primary, --login-dark
 */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #f8fafc;
}

/* ── PANEL HERO (con gradiente) ─────────────────────── */
.login-hero {
    width: 44%;
    background: linear-gradient(155deg, var(--login-dark) 0%, var(--login-primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 56px solid rgba(255, 255, 255, .05);
    top: -90px;
    right: -110px;
}

.login-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
    bottom: -50px;
    left: -50px;
}

/* Mirror: hero a la derecha */
.login-hero--right::before {
    right: auto;
    left: -110px;
}

.login-hero--right::after {
    left: auto;
    right: -50px;
}

.login-hero h1,
.login-hero h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

.login-hero h1 { font-size: 3rem; }
.login-hero h2 { font-size: 2.6rem; line-height: 1.1; }

.login-hero .dim {
    color: rgba(255, 255, 255, .4);
    font-weight: 300;
}

.login-hero p {
    color: rgba(255, 255, 255, .58);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 320px;
}

/* ── BRAND PILL ─────────────────────────────────────── */
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 40px;
    padding: 7px 14px 7px 8px;
    width: fit-content;
    margin-bottom: 38px;
}

.brand-pill-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-primary);
    font-size: 0.9rem;
}

.brand-pill span {
    color: rgba(255, 255, 255, .8);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ── FEATURES LIST ──────────────────────────────────── */
.features {
    margin-top: 42px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 11px;
}

.feat-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.feat span {
    color: rgba(255, 255, 255, .65);
    font-size: 0.85rem;
}

/* ── PANEL FORMULARIO ───────────────────────────────── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
}

/* ── FORM BOX (glassmorphism) ───────────────────────── */
.form-box {
    width: 100%;
    max-width: 370px;
}

.form-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #18212f;
    margin-bottom: 5px;
    letter-spacing: -0.025em;
}

.form-box .sub {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 32px;
}

/* ── FORM ELEMENTS ──────────────────────────────────── */
.lbl {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 5px;
}

.inp-wrap {
    position: relative;
    margin-bottom: 16px;
}

.inp-wrap .ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
    pointer-events: none;
}

.inp-wrap input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #18212f;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.inp-wrap input:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

/* ── SUBMIT BUTTON ──────────────────────────────────── */
.btn-go {
    width: 100%;
    padding: 11px;
    background: var(--login-primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    margin-top: 6px;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-go:hover {
    background: var(--login-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.btn-go:active {
    transform: none;
    box-shadow: none;
}

/* ── ALT LINK ───────────────────────────────────────── */
.alt {
    text-align: center;
    margin-top: 22px;
}

.alt a {
    color: var(--login-primary);
    font-size: 0.83rem;
    text-decoration: none;
    font-weight: 500;
}

.alt a:hover {
    text-decoration: underline;
}

/* ── ERROR BOX ──────────────────────────────────────── */
.err-box {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #7f1d1d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    margin-bottom: 20px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .login-hero {
        display: none;
    }

    .login-form-panel {
        background: #fff;
    }
}
