/* ==========================================================================
   ARCANUS CUBE - HOJA DE ESTILOS DE AUTENTICACIÓN (RESPONSIVE)
   ========================================================================== */

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

body {
    background-color: #0b0f16;
    color: #e2e8f0;
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrado vertical en cualquier pantalla */
    min-height: 100vh;
    padding: 20px 15px; /* Padding dinámico para que no toque los bordes del celular */
}

/* El contenedor principal nunca superará los 420px, pero se encogerá al 100% en celulares */
.login-container {
    width: 100%;
    max-width: 420px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* IDENTIDAD VISUAL */
.brand-section {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.svg-logo {
    width: clamp(80px, 25vw, 110px); /* El logo crece/encoge fluidamente según la pantalla */
    margin: 0 auto 15px auto;
}

.cyber-tag {
    position: absolute;
    top: 35px;
    right: 5%;
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 5px;
}

.brand-title {
    font-family: 'Georgia', serif;
    font-size: clamp(1.8rem, 6vw, 2.2rem); /* Fuente matemática y fluida */
    font-weight: normal;
    letter-spacing: clamp(6px, 2vw, 12px);
    color: #f8fafc;
    margin-bottom: 15px;
    line-height: 1.3;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 3px;
    line-height: 1.8;
}

/* CAJAS TIPO BÚNKER */
.status-box, .login-box {
    width: 100%;
    border: 1px solid #1e293b;
    background: #0f172a;
    border-radius: 4px;
    padding: clamp(15px, 5vw, 25px); /* Padding adaptable */
    margin-bottom: 20px;
}

.status-box { text-align: center; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #334155;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.live-dot {
    width: 6px; height: 6px;
    background-color: #6385a7;
    border-radius: 50%;
    box-shadow: 0 0 8px #6385a7;
}

.status-text {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.6;
    letter-spacing: 1px;
}

.box-header {
    font-size: 0.85rem;
    color: #f8fafc;
    letter-spacing: 3px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.input-group { margin-bottom: 20px; width: 100%; }

.input-group label {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

input {
    display: block;
    width: 100%;
    padding: 14px 15px;
    background: #0b0f16;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: 0.3s all;
}

input:focus { outline: none; border-color: #6385a7; box-shadow: 0 0 10px rgba(99, 133, 167, 0.1); }

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #e2e8f0;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s all;
    border-radius: 4px;
    margin-top: 15px;
}

button:hover { background: #e2e8f0; color: #0b0f16; }

#error-msg {
    color: #ef4444; font-size: 0.75rem; margin-top: 15px;
    display: none; text-align: left; border-left: 2px solid #ef4444;
    padding-left: 10px; line-height: 1.4;
}

/* ==========================================================================
   MEDIA QUERIES PARA SMARTPHONES ESTRICTOS (< 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .cyber-tag { display: none; } /* Ocultar etiqueta puramente estética para ganar espacio */
    .status-text { font-size: 0.7rem; }
    input { padding: 12px; font-size: 1rem; } /* Forzar font-size a 1rem (16px) en inputs previene el auto-zoom de iOS Safari */
    button { padding: 14px; font-size: 0.8rem; }
}
