* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    font-family: 'Montserrat', sans-serif;
}

.login-card { 
    background: #151515; 
    padding: 50px 40px; 
    border-radius: 16px; 
    width: 420px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px #2a2a2a; 
}

.login-card .logo { 
    text-align: center; 
    margin-bottom: 10px; 
    font-size: 2.5rem; 
}

.login-card h2 { 
    color: #fff; 
    text-align: center; 
    margin-bottom: 8px; 
    font-family: 'Cinzel', serif; 
    letter-spacing: 3px; 
    font-size: 1.8rem;
}

.login-card .subtitle { 
    color: #666; 
    text-align: center; 
    margin-bottom: 35px; 
    font-size: 0.9rem; 
}

.input-group { 
    margin-bottom: 22px; 
}

.input-group label { 
    display: block; 
    color: #aaa; 
    font-size: 0.85rem; 
    margin-bottom: 8px; 
    font-weight: 500; 
}

.input-group input { 
    width: 100%; 
    padding: 14px 16px; 
    background: #1e1e1e; 
    border: 1px solid #333; 
    border-radius: 10px; 
    color: #fff; 
    font-size: 0.95rem;
}

.input-group input:focus { 
    border-color: #e63946; 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Contenedor del input de contraseña con el botón del ojito SVG */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #e63946;
}

.toggle-password svg {
    display: block;
}

.btn-login { 
    width: 100%; 
    padding: 15px; 
    background: #e63946; 
    color: #fff; 
    border: none; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 1rem; 
    cursor: pointer; 
    letter-spacing: 1px; 
    margin-top: 10px;
}

.btn-login:hover { 
    background: #d62828; 
}

.btn-login:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

.error-msg { 
    color: #e63946; 
    text-align: center; 
    margin-top: 18px; 
    font-size: 0.9rem; 
    display: none; 
    padding: 12px;
    background: rgba(230, 57, 70, 0.1); 
    border-radius: 8px;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.footer-login { 
    text-align: center; 
    margin-top: 25px; 
    color: #444; 
    font-size: 0.75rem; 
}