@charset "utf-8";
/* CSS Document */

/* * assets/css/auth-styles.css
 * Estilos globales para el flujo de autenticación (Login, MFA, Reset Password)
 */

:root {
	--primary-hover: #1e293b;
    --bg-main: #f8fafc;
	--bg-error: #fef2f2;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-error: #ef4444;
    --text-success: #16a34a;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
}




/* Layout Principal */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 1.5rem;
    background-color: var(--bg-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 440px;
    width: 100%;
}

/* Tipografía y Encabezados */
.auth-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* Formularios y Grupos */
.form-group-wrapper {
    margin-bottom: 1.25rem;
}

.form-group-wrapper label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group-wrapper input {
    width: calc(100% - 2.5rem);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-group-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botones */
.btn-primary-full {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-full:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary-full:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Alertas y Estados */
.alert {
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
}

.badge.is-error {
    background-color: #fef2f2;
    color: var(--text-error);
    border: 1px solid #fee2e2;
}

.badge.is-success {
    background-color: #f0fdf4;
    color: var(--text-success);
    border: 1px solid #dcfce7;
}

/* Monitor de Complejidad de Contraseña */
.password-complexity-monitor {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
}

.complexity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
}

.complexity-list li {
    margin-bottom: 0.35rem;
    padding-left: 1.4rem;
    position: relative;
    color: var(--text-muted);
}

.complexity-list li::before {
    content: '○';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.complexity-list li.is-valid {
    color: var(--text-success);
    font-weight: 600;
}

.complexity-list li.is-valid::before {
    content: '✓';
}

/* Estilos específicos para MFA */
.mfa-code-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.mfa-input {
    width: 45px !important;
    height: 55px;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* Links y Footer */
.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.text-muted-link, .link-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.text-muted-link:hover, .link-back:hover {
    color: var(--primary-color);
}

.link-secondary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-secondary:hover {
    text-decoration: underline;
}

/* Utilidades */
.text-center { text-align: center; }
.w-full { width: 100%; }


/* Grupo de entrada OTP específico */
.otp-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.otp-digit {
    width: 3.2rem;
    height: 4rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fcfcfc;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* style reset password*/

/* --- Extension para Reset Password y Campos de Clave --- */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    padding: 0;
    z-index: 10;
}

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

/* Feedback de coincidencia */
.match-success {
    border-color: var(--text-success) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

.match-error {
    border-color: var(--text-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Estado faltante en el global */
.complexity-list li.is-invalid {
    color: var(--text-error);
}

/* Tarjeta de error de Token */
.error-card { text-align: center; padding: 1rem; }
.error-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }


/* Contenedor principal para páginas públicas */
.auth-layout-wrapper { 
	display: flex; 
	flex-direction: column; 
	min-height: 100vh; /* Ocupa al menos el 100% de la pantalla */
	background-color: var(--bg-auth); 
	padding: 0;
	margin: 0;
}

.auth-header-brand { 
	flex-shrink: 0; /* No se encoge */
	text-align: center; 
	padding: 0 1rem; 
}

/* El main se expande para empujar el footer hacia abajo */
.auth-content-area { 
	flex: 1 0 auto; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	padding-bottom: 3rem; 
}

/* El footer siempre se queda al final */
.auth-footer-info {
	flex-shrink: 0;
	background: #fff; 
	padding: 1rem 1rem; 
	border-top: 1px solid #e1e4e8; 
	font-size: 0.85rem; 
	color: #586069;
}

.auth-logo-img { max-width: 160px; height: auto; margin-bottom: 1rem; }