/* BIM Viewer V2 - Estilos de Autenticación */

.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #007bff, #17a2b8);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 0;
    box-shadow: none;
    background: none;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-form {
    padding: 2rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-form .input-group .btn {
    border: 2px solid #e5e7eb;
    border-left: none;
    background: white;
    color: #6b7280;
}

.auth-form .input-group .btn:hover {
    background: #f9fafb;
    color: #374151;
}

.auth-btn {
    background: linear-gradient(135deg, #007bff, #17a2b8);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    background: #f9fafb;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Form check personalizado */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    color: #6b7280;
    font-weight: 500;
}

/* Alertas en auth */
.auth-form .alert {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-body {
        padding: 1rem;
    }
    
    .auth-card {
        border-radius: 0.75rem;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Animación de carga */
.auth-loading {
    position: relative;
    pointer-events: none;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos hover para elementos interactivos */
.auth-form .form-control:hover {
    border-color: #d1d5db;
}

.auth-form .btn:hover {
    transform: translateY(-1px);
}

/* Estilos para estados de validación */
.auth-form .form-control.is-valid {
    border-color: #28a745;
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form .valid-feedback,
.auth-form .invalid-feedback {
    font-size: 0.875rem;
    font-weight: 500;
}
