/*
 * Estilos CSS principales para el sitio web de Grupo Kowalski.

 ________  _______   ________   ___  ________           _________  ________  ________  ________  ________   ________  ________     
|\   ___ \|\  ___ \ |\   ___  \|\  \|\   ____\         |\___   ___\\   __  \|\   __  \|\   __  \|\   ___  \|\_____  \|\   __  \    
\ \  \_|\ \ \   __/|\ \  \\ \  \ \  \ \  \___|_        \|___ \  \_\ \  \|\  \ \  \|\  \ \  \|\  \ \  \\ \  \\|___/  /\ \  \|\  \   
 \ \  \ \\ \ \  \_|/_\ \  \\ \  \ \  \ \_____  \            \ \  \ \ \  \\\  \ \   _  _\ \   __  \ \  \\ \  \   /  / /\ \  \\\  \  
  \ \  \_\\ \ \  \_|\ \ \  \\ \  \ \  \|____|\  \            \ \  \ \ \  \\\  \ \  \\  \\ \  \ \  \ \  \\ \  \ /  /_/__\ \  \\\  \ 
   \ \_______\ \_______\ \__\\ \__\ \__\____\_\  \            \ \__\ \ \_______\ \__\\ _\\ \__\ \__\ \__\\ \__\\________\ \_______\
    \|_______|\|_______|\|__| \|__|\|__|\_________\            \|__|  \|_______|\|__|\|__|\|__|\|__|\|__| \|__|\|_______|\|_______|
                                       \|_________|                                                                                
                                                                                                                                   
                                                                                                                                   
💻 Código escrito con aguita en mano y khea de fondo
🧠 Si tocás esto... sabé que estás tocando código bendecido por DENIS
🌐 www.grupokowalski.com (o en proceso, dame tiempo 😅)
📍 Hecho en Argentina, con amor y unos bugs de regalo
*/
/* =================================================================
   ESTILOS DE AUTENTICACIÓN v4.2 - CON TOGGLE DE CONTRASEÑA
   ================================================================= */

/* --- Contenedor Principal de la Tarjeta --- */
.auth-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}
.auth-container {
    display: flex;
    justify-content: center; /* centrar horizontal */
    align-items: center;     /* centrar vertical */
    min-height: 100vh;       /* ocupar toda la altura de la ventana */
    padding: 1rem;           /* opcional: espacio en móviles */
    background-color: #f9fafb; /* opcional: color de fondo */
}

/* --- Logo --- */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo img {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* --- Títulos y Textos --- */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

/* --- Mensaje de Estado (ej. "Enlace enviado") --- */
.auth-status {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #166534;
    background-color: #dcfce7;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* --- Formulario y Campos de Entrada --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.auth-input-group {
    display: flex;
    flex-direction: column;
}
.auth-input-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: left;
}
.auth-input-wrapper {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}
.auth-input-field {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-field:focus {
    outline: none;
    border-color: #005285;
    box-shadow: 0 0 0 3px rgba(0, 82, 133, 0.2);
}

/* ===================================================================== */
/* ESTILOS PARA EL TOGGLE DE CONTRASEÑA */
/* ===================================================================== */

/* Wrapper especial para el campo de contraseña */
.auth-password-wrapper {
    position: relative;
}

/* Campo de contraseña con espacio para el botón toggle */
.auth-password-field {
    padding-right: 3rem !important; /* Espacio para el botón toggle */
}

/* Botón toggle de contraseña */
.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    color: #9ca3af;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

/* Hover del botón toggle */
.auth-password-toggle:hover {
    background-color: #f3f4f6;
    color: #005285;
    transform: translateY(-50%) scale(1.1);
}

/* Estado activo (cuando la contraseña es visible) */
.auth-password-toggle.password-visible {
    color: #005285;
    background-color: #f0f9ff;
}

/* Focus del botón toggle para accesibilidad */
.auth-password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 133, 0.2);
    background-color: #f0f9ff;
    color: #005285;
}

/* Ícono dentro del botón toggle */
.auth-password-toggle i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

/* Animación del ícono al cambiar */
.auth-password-toggle:active i {
    transform: scale(0.9);
}

/* Responsive para móviles */
@media (max-width: 640px) {
    .auth-password-toggle {
        width: 2.5rem;
        height: 2.5rem;
        right: 0.5rem;
    }
    
    .auth-password-toggle i {
        font-size: 1.1rem;
    }
    
    .auth-password-field {
        padding-right: 3.5rem !important;
    }
}

/* ===================================================================== */
/* CHECKBOX PERSONALIZADO PROFESIONAL */
/* ===================================================================== */

/* Contenedor del checkbox personalizado */
.auth-checkbox-container {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    cursor: pointer;
    user-select: none;
}

/* Ocultar el checkbox nativo del navegador */
.auth-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Crear el checkbox personalizado */
.auth-checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Hover del checkbox */
.auth-checkbox-container:hover .auth-checkbox-custom {
    border-color: #005285;
    box-shadow: 0 0 0 3px rgba(0, 82, 133, 0.1);
}

/* Checkbox cuando está marcado */
.auth-checkbox-container input:checked ~ .auth-checkbox-custom {
    background-color: #005285;
    border-color: #005285;
    transform: scale(1.05);
}

/* Crear el checkmark (✓) */
.auth-checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Mostrar el checkmark cuando está marcado */
.auth-checkbox-container input:checked ~ .auth-checkbox-custom::after {
    display: block;
    animation: checkmark-appear 0.3s ease-out;
}

/* Animación del checkmark */
@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

/* Texto del label */
.auth-checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

/* Hover del texto */
.auth-checkbox-container:hover .auth-checkbox-label {
    color: #005285;
}

/* Estado focus para accesibilidad */
.auth-checkbox-container input:focus ~ .auth-checkbox-custom {
    outline: none;
    border-color: #005285;
    box-shadow: 0 0 0 3px rgba(0, 82, 133, 0.2);
}

/* Responsive para móviles */
@media (max-width: 640px) {
    .auth-checkbox-container {
        margin: 1rem 0;
    }
    
    .auth-checkbox-custom {
        height: 18px;
        width: 18px;
        margin-right: 10px;
    }
    
    .auth-checkbox-custom::after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
    }
    
    .auth-checkbox-label {
        font-size: 0.8rem;
    }
    .auth-container {
        align-items: flex-start;  /* empieza desde arriba en pantallas pequeñas */
        padding-top: 5vh;
    }
}

/* ===================================================================== */
/* ESTILOS PARA MENSAJES DE ERROR CON ÍCONOS UNICODE */
/* ===================================================================== */

/* Eliminar marcadores de lista globalmente */
.text-sm.text-red-600,
.text-sm.text-red-600 *,
.auth-input-group .text-sm.text-red-600,
.auth-input-group .text-sm.text-red-600 * {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    list-style-position: outside !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Estilo para errores de validación */
.text-sm.text-red-600 {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #dc2626 !important;
    animation: deslizar-entrada 0.3s ease-out;
    list-style: none !important;
    list-style-type: none !important;
}

/* Ícono de error usando Unicode */
.text-sm.text-red-600:before {
    content: "⚠️";
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Animación de entrada suave */
@keyframes deslizar-entrada {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Botones --- */
.auth-actions {
    margin-top: 0.5rem;
}
.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background-color: #005285;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.auth-btn-primary:hover {
    background-color: #00395d;
}
.auth-btn-primary:active {
    transform: scale(0.98);
}

/* --- Pie de la Tarjeta (Enlaces secundarios) --- */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
}
.auth-link-secondary {
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link-secondary:hover {
    color: #005285;
}
.auth-link-secondary i {
    margin-right: 0.25rem;
}

/* ===================================================================== */
/* ESTILOS DEL MODAL DE CONFIRMACIÓN */
/* ===================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.modal-visible .modal-contenido {
    transform: scale(1);
}

.modal-icono {
    margin-bottom: 1.5rem;
}

.modal-icono:before {
    content: "✅";
    font-size: 4rem;
    display: block;
    animation: pulso-suave 2s infinite;
}

@keyframes pulso-suave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modal-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.modal-mensaje {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-contador {
    font-size: 0.9rem;
    color: #005285;
    font-weight: 600;
    padding: 0.75rem 1rem;
    background-color: #f0f9ff;
    border-radius: 0.5rem;
    border: 1px solid #e0f2fe;
}

.modal-contador span {
    color: #005285;
}

/* Responsividad del modal */
@media (max-width: 640px) {
    .modal-contenido {
        padding: 2rem;
        margin: 1rem;
    }
    
    .modal-icono:before {
        font-size: 3rem;
    }
    
    .modal-titulo {
        font-size: 1.25rem;
    }
}



