/* =============================================
   CSS PARA PÁGINAS DE AUTENTICACIÓN
   Login y Register - Extraído de CSS inline
============================================= */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --border-radius: 16px;
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout principal de autenticación */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #4338ca;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/img/bg-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* Contenedor principal */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #4338ca;
}

/* Header */
.auth-header {
    text-align: center;
    padding: 48px 48px 32px;
    background: #4338ca;
    color: white;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #4338ca;
    border-radius: 0 0 50px 50px;
}

.auth-header img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.auth-header img:hover {
    transform: scale(1.05);
}

.auth-header h4 {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.75rem;
}

.auth-header p {
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 0;
}

/* Body del formulario */
.auth-body-form {
    padding: 48px;
}

/* Formularios */
.auth-form-floating {
    position: relative;
    margin-bottom: 28px;
}

.auth-form-control {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    width: 100%;
}

.auth-form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.auth-form-floating > label {
    padding: 18px 24px;
    color: #64748b;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* Botones */
.auth-btn-primary {
    background: #4338ca;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    color: white;
    cursor: pointer;
}

.auth-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.3);
}

.auth-btn-primary:hover::before {
    left: 100%;
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* Enlaces */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Alertas */
.auth-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        margin: 20px;
        max-width: none;
    }
    
    .auth-header,
    .auth-body-form {
        padding: 32px 24px;
    }
    
    .auth-header h4 {
        font-size: 1.5rem;
    }
}
