/* ===== ESTILOS ADICIONALES PARA LOGIN SOCIAL ===== */

/* Corregir el problema de background-clip */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Estándar */
    -webkit-text-fill-color: transparent;
}

/* Mejoras para los colores de los botones */
.btn-google {
    background: #db4437;
    border-color: #db4437;
    transition: all 0.3s ease;
}

.btn-google:hover,
.btn-google:focus,
.btn-google:active {
    background: #c23321 !important;
    border-color: #c23321 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 68, 55, 0.3) !important;
}

.btn-facebook {
    background: #3b5998;
    border-color: #3b5998;
    transition: all 0.3s ease;
}

.btn-facebook:hover,
.btn-facebook:focus,
.btn-facebook:active {
    background: #2d4373 !important;
    border-color: #2d4373 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.3) !important;
}

.btn-microsoft {
    background: #00a1f1;
    border-color: #00a1f1;
    transition: all 0.3s ease;
}

.btn-microsoft:hover,
.btn-microsoft:focus,
.btn-microsoft:active {
    background: #0078d4 !important;
    border-color: #0078d4 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 161, 241, 0.3) !important;
}

.btn-twitter {
    background: #1da1f2;
    border-color: #1da1f2;
    transition: all 0.3s ease;
}

.btn-twitter:hover,
.btn-twitter:focus,
.btn-twitter:active {
    background: #0d8bd9 !important;
    border-color: #0d8bd9 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3) !important;
}

/* Estilos adicionales para LinkedIn y GitHub */
.btn-linkedin {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
    transition: all 0.3s ease;
}

.btn-linkedin:hover,
.btn-linkedin:focus,
.btn-linkedin:active {
    background: #005885 !important;
    border-color: #005885 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3) !important;
}

.btn-github {
    background: #333;
    border-color: #333;
    color: white;
    transition: all 0.3s ease;
}

.btn-github:hover,
.btn-github:focus,
.btn-github:active {
    background: #24292e !important;
    border-color: #24292e !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .social-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .social-btn i {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #1e1e1e;
        color: #ffffff;
    }

    .form-control-user {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }

    .form-control-user:focus {
        background-color: #2d2d2d;
        border-color: var(--color-primario);
        color: #ffffff;
    }
}

/* Animaciones mejoradas */
@keyframes socialButtonEntry {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-btn {
    animation: socialButtonEntry 0.5s ease forwards;
}

.social-btn:nth-child(1) { animation-delay: 0.1s; }
.social-btn:nth-child(2) { animation-delay: 0.2s; }
.social-btn:nth-child(3) { animation-delay: 0.3s; }
.social-btn:nth-child(4) { animation-delay: 0.4s; }

/* Efectos de loading */
.social-btn.loading {
    position: relative;
    color: transparent;
}

.social-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mejoras para accesibilidad */
.social-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.social-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Tooltips para botones */
.social-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}
