/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PALETA CORPORATIVA */
:root {
    --primary-color: #1f2937;      /* Gris azulado corporativo */
    --secondary-color: #374151;    /* Gris profundo */
    --accent-color: #2563eb;       /* Azul leve para focos */
    --background-color: #f3f4f6;   /* Fondo gris claro */
    --text-color: #1f2937;
    --border-gray: #d1d5db;
    --error-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #d97706;
}

/* BODY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* CONTENEDOR */
.login-container {
    width: 100%;
    max-width: 420px;
}

/* CARD */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    padding: 32px;
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

.login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-top: 6px;
}

/* FORMULARIO */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* MOSTRAR CONTRASEÑA */
.password-toggle {
    background: none;
    border: none;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
}

/* OPCIONES */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* CHECKBOX */
.checkbox-container {
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #6b7280;
}

.checkbox-container input {
    margin-right: 6px;
}

/* BOTÓN */
.login-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.login-button:hover {
    background: var(--secondary-color);
}

/* NOTIFICACIONES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(150%);
    transition: transform .3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error { background: var(--error-color); }
.notification.success { background: var(--success-color); }
.notification.warning { background: var(--warning-color); }

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
}
