body.auth-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f2f5;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contenedor-login {
    background: #ffffff;
    border: 1px solid #d0d7de;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.encabezado {
    text-align: center;
    margin-bottom: 30px;
}

.encabezado h1 {
    color: #24292f;
    margin: 0;
    font-size: 1.8rem;
}

.encabezado p {
    color: #57606a;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #24292f;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    color: #24292f;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}

.form-group input:focus {
    border-color: #238636;
    background: #ffffff;
}

.btn-action {
    width: 100%;
    background: #238636;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #2ea043;
}

#mensaje-error {
    display: none;
    color: #cf222e;
    background: rgba(207, 34, 46, 0.1);
    border: 1px solid #cf222e;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    text-align: center;
}
/* --- Enlace "¿Olvidaste tu contraseña?" y mensajes informativos --- */
.enlace-secundario {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #0969da;
    font-size: 0.9rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.enlace-secundario:hover {
    text-decoration: underline;
}

.mensaje-info {
    display: none;
    color: #0a3069;
    background: rgba(9, 105, 218, 0.08);
    border: 1px solid #54aeff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
}

.mensaje-exito {
    display: none;
    color: #1a7f37;
    background: rgba(26, 127, 55, 0.08);
    border: 1px solid #1a7f37;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Reglas de la contraseña en vivo --- */
.reglas-contrasena {
    list-style: none;
    padding: 0;
    margin: -8px 0 20px 0;
    font-size: 0.82rem;
}

.reglas-contrasena li {
    color: #57606a;
    margin-bottom: 4px;
}

.reglas-contrasena li::before {
    content: "○ ";
}

.reglas-contrasena li.cumple {
    color: #1a7f37;
}

.reglas-contrasena li.cumple::before {
    content: "✓ ";
}

.aviso-obligatorio {
    color: #9a6700;
    background: #fff8c5;
    border: 1px solid #d4a72c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.5;
}
