/* ─── RESET Y BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
}

/* ─── CONTENEDOR ────────────────────────────────────────────────────────────── */
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ─── TÍTULO ────────────────────────────────────────────────────────────────── */
h1 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ─── CAMPOS ────────────────────────────────────────────────────────────────── */
.campo {
    margin-bottom: 1.2rem;
}

.campo label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.campo input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.campo input:focus {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.campo input.input-error {
    border-color: #c0392b;
}

/* ─── BOTÓN ─────────────────────────────────────────────────────────────────── */
button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: #ffffff;
    color: #0f0f0f;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    background: #e0e0e0;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

/* ─── MENSAJE DE ERROR ──────────────────────────────────────────────────────── */
.error-msg {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #e74c3c;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}