@charset "UTF-8";
/* ════════════════════════════════════════════════════════════════
   Censo Maestro CPCM — Pantalla de login
   Estética: ciberseguridad oscura moderna
   ════════════════════════════════════════════════════════════════ */

:root {
    --accent:       #e30613;
    --accent-dark:  #c10511;
    --accent-glow:  rgba(227, 6, 19, 0.35);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #e5e5e5;
    background: #050505;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con rejilla sutil + radial central */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(227,6,19,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Contenedor principal ─────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* ── Cabecera decorativa superior ──────────────────────────────── */
.login-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.1em;
    z-index: 2;
    pointer-events: none;
}
.login-top__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.login-top__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ── Card de login ─────────────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(18,18,18,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2.5rem 2.25rem 2rem;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 30px 80px -20px rgba(0,0,0,0.6),
        0 0 60px -20px var(--accent-glow);
}

/* Acento rojo superior tipo "status bar" */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}
/* Triángulo rojo superior derecho (del logo CPCM) */
.login-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 22px 22px 0 0;
    border-color: var(--accent) transparent transparent transparent;
    opacity: 0.9;
}

/* ── Logo / wordmark CPCM ──────────────────────────────────────── */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.login-logo__mark {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: "SFMono-Regular", Consolas, monospace;
    margin-bottom: 0.875rem;
}
.login-logo__wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
}
.login-logo__wordmark .dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}
.login-logo__subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ── Alerta ────────────────────────────────────────────────────── */
.login-alert {
    padding: 0.75rem 0.95rem;
    background: rgba(227,6,19,0.08);
    border: 1px solid rgba(227,6,19,0.3);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    color: #fca5a5;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.login-alert__icon {
    flex-shrink: 0;
    width: 16px; height: 16px;
    margin-top: 1px;
}

/* ── Formulario ────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-field { position: relative; }
.login-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.45rem;
    font-family: "SFMono-Regular", Consolas, monospace;
}
.login-field__input {
    width: 100%;
    padding: 0.75rem 0.95rem 0.75rem 2.65rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.login-field__input:focus {
    outline: none;
    background: rgba(255,255,255,0.07);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.15);
}
.login-field__input::placeholder { color: rgba(255,255,255,0.3); }
.login-field__input:-webkit-autofill,
.login-field__input:-webkit-autofill:hover,
.login-field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(18,18,18,1) inset;
    transition: background-color 5000s ease-in-out 0s;
}
.login-field__icon {
    position: absolute;
    left: 0.85rem;
    top: calc(1.15rem + 0.75rem);
    width: 16px; height: 16px;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}

/* ── Botón de envío ───────────────────────────────────────────── */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 0 30px -8px var(--accent-glow);
}
.login-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 0 40px -6px var(--accent-glow);
}
.login-btn:active { transform: translateY(1px); }
.login-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Legal / footer de login ──────────────────────────────────── */
.login-legal {
    margin-top: 1.75rem;
    text-align: center;
    max-width: 420px;
    padding: 0 1rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}
.login-legal strong {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ── Footer inferior con metadata ──────────────────────────────── */
.login-foot {
    position: fixed;
    bottom: 1rem; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.08em;
    z-index: 2;
    pointer-events: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card { padding: 2rem 1.5rem 1.75rem; }
    .login-logo__wordmark { font-size: 1.5rem; }
    .login-top, .login-foot { font-size: 0.65rem; padding: 0.75rem 1rem; }
    .login-foot { position: static; margin-top: 2rem; }
}
