/* Estilos Unificados para Páginas de Login */

/* Layout Principal */
.login-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ===== ESTILOS MINIMALISTAS PARA LOGIN ===== */
.login-section-minimal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
}

.login-container-minimal {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-header-minimal {
    margin-bottom: 32px;
}

.login-icon-minimal {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.login-header-minimal h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.login-header-minimal p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.status-message-minimal {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-message-minimal.success {
    background: #d1fae5;
    color: #065f46;
}

.status-message-minimal.error {
    background: #fee2e2;
    color: #991b1b;
}

.status-message-minimal.info {
    background: #dbeafe;
    color: #1e40af;
}

.email-login-form-minimal {
    text-align: left;
    margin-bottom: 0;
}

.email-login-form-minimal .form-group {
    margin-bottom: 12px;
}

.email-login-form-minimal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

.email-login-form-minimal .form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-email-login-minimal {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-email-login-minimal:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-email-login-minimal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-container-minimal .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.login-container-minimal .divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-container-minimal .divider-text {
    color: #9ca3af;
    font-size: 14px;
}

.google-login-btn-minimal {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.google-login-btn-minimal:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.google-login-btn-minimal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-icon-minimal {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-links-minimal {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-links-minimal a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.login-links-minimal a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.login-links-minimal span {
    color: #cbd5e1;
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Columna Izquierda - Información */
.login-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.login-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.login-header .highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.7;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-icon.business {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.feature-icon.driver {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-icon.customer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.feature-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Columna Derecha - Formulario */
.login-form-container {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header .form-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.form-header .form-icon.business {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.form-header .form-icon.driver {
    background: linear-gradient(135deg, #10b981, #059669);
}

.form-header .form-icon.customer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Botones */
.login-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn.business {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.login-btn.driver {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.login-btn.customer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.google-login-btn {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-login-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDEwLjIyNzNDMjAgOS41MTgyIDE5LjkzNjQgOC44M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I3MjczIDUuNDU0NTVMNC42MzYzNiA3LjkwOTA5QzUuNTQ1NDUgNS41OTA5MSA3LjY3MjczIDQuMDkwOTEgMTAuMiA0LjA5MDkxWiIgZmlsbD0iI0VBNDMzNSIvPgo8L3N2Zz4K') no-repeat center;
    background-size: contain;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Mensajes de Estado */
.status-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-message.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Enlaces Adicionales */
.form-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.form-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-links .divider-text {
    margin: 0 12px;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .login-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 100px 0 60px;
    }
    
    .login-container {
        gap: 40px;
        padding: 0 16px;
    }
    
    .login-form-container {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1.125rem;
    }
    
    .feature-item {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 24px 20px;
    }
    
    .form-header .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
}
