/* ==== ESTILO GENERAL ==== */
body {
    background-color: #111;
    color: #ddd;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==== CONTENEDOR ==== */
.login-container {
    background-color: #1e1e1e;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #007bff;
}

/* ==== LABELS CLAROS Y ARRIBA ==== */
.login-container label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
    font-size: 14px;
    color: #ccc;
}

/* ==== INPUTS ==== */
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #2c2c2c;
    color: #eee;
    font-size: 14px;
    box-sizing: border-box;
}

/* ==== ENVOLTORIO CONTRASEÑA ==== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.password-wrapper input {
    flex: 1;
    padding-right: 40px;
}

/* ==== BOTÓN OJITO ==== */
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #fff;
}

/* ==== CHECKBOX RECORDAR ==== */
.login-container label[for="recordarme"] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    font-size: 14px;
    color: #ccc;
}

/* ==== BOTÓN INGRESAR ==== */
.login-container button[type="submit"] {
    margin-top: 8px;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button[type="submit"]:hover {
    background-color: #0056b3;
}

/* ==== MENSAJE DE ERROR ==== */
.error {
    background-color: #ff4d4d;
    color: white;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 14px;
}

/* ==== RESPONSIVE ==== */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-container h2 {
        font-size: 22px;
    }
}
