/* Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    color: #111;
}

/* Contenedor del login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
    color: #000;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    text-align: left;
    font-weight: bold;
    color: #000;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

button {
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #444;
}

/* Registro */
.registro {
    margin-top: 20px;
    font-size: 0.9em;
}

.registro a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.registro a:hover {
    text-decoration: underline;
}

/* Navegación */
.nav-footer {
    margin-top: 40px;
    text-align: center;
}

.nav-footer a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-footer a:hover {
    background: #000;
    color: #fff;
}

/* ===== PASSWORD STRENGTH ===== */

.password-meter {
    margin-top: 14px;
}

.password-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

#password-strength {
    height: 100%;
    width: 0%;
    background: #d32f2f;
    transition: width 0.3s ease, background 0.3s ease;
}

#password-text {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ===== CHECKLIST ===== */

.password-rules {
    list-style: none;
    margin-top: 14px;
    padding: 0;
}

.password-rules li {
    font-size: 0.9rem;
    color: #9e9e9e;
    margin-bottom: 6px;
}

.password-rules li.valid {
    color: #2e7d32;
}

.password-rules li.invalid {
    color: #d32f2f;
}

/* ===== ERROR FORM ===== */

.form-error {
    margin-top: 14px;
    color: #d32f2f;
    font-weight: bold;
    text-align: center;
}