/* gestion/static/gestion/css/style.css */

/* --- Tus Variables y Estilos Base que ya tenías --- */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --border: #e2e8f0;
    --input-focus: #c7d2fe;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    height: 100%;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.login-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center; /* Aseguramos que el título esté centrado */
}

.card-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 30px 0;
    text-align: center; /* Subtítulo centrado */
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.password-wrapper {
    position: relative;
}

/* --- Actualización para el Icono de Google --- */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); /* Gris por defecto */
    cursor: pointer;
    font-size: 20px; /* Tamaño profesional */
    user-select: none; /* Evita que el usuario seleccione el texto del icono */
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--accent); /* Cambia al morado al pasar el ratón */
}

/* --- Resto de tus estilos que ya tenías --- */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.card-footer {
    margin-top: 25px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center; /* Pie centrado */
}

.card-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}