/* ==========================================
   GOOGLE AUTH STYLES - IFRINA THEME
   ========================================== */

/* Séparateur */
.divider-container {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ifrina-gold-light), transparent);
}

.divider-text {
    color: var(--ifrina-gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 1rem;
}

/* Container Google Auth */
.google-auth-container {
    margin: 1.5rem 0;
}

/* Bouton Google personnalisé */
.btn-google-custom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--ifrina-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #3c4043;
    cursor: pointer;
    transition: var(--ifrina-transition);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-google-custom:hover {
    background: #f8f9fa;
    border-color: var(--ifrina-gold);
    transform: translateY(-2px);
    box-shadow: var(--ifrina-shadow-sm);
}

.btn-google-custom:active {
    transform: translateY(0);
}

.btn-google-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 176, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-google-custom:hover::before {
    left: 100%;
}

/* Animation de chargement */
.btn-google-custom.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-google-custom.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ifrina-gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: googleSpin 1s linear infinite;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes googleSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .btn-google-custom {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .divider-container {
        margin: 1.5rem 0;
    }
    
    .divider-text {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
}

/* Intégration avec le thème existant */
.login-wrapper .btn-google-custom,
.register-wrapper .btn-google-custom {
    margin: 1rem 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .btn-google-custom {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444444;
    }
    
    .btn-google-custom:hover {
        background: #3a3a3a;
        border-color: var(--ifrina-gold);
    }
    
    .divider-text {
        color: #cccccc;
    }
}

/* Focus states pour accessibilité */
.btn-google-custom:focus {
    outline: 2px solid var(--ifrina-gold);
    outline-offset: 2px;
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-auth-container {
    animation: slideInUp 0.4s ease;
}

/* Message d'erreur Google */
.google-error {
    background: linear-gradient(135deg, #fee, #fdd);
    color: #c33;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #fcc;
    margin: 1rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-error::before {
    content: '⚠️';
    font-size: 1rem;
}

/* Message de succès Google */
.google-success {
    background: linear-gradient(135deg, #efe, #dfd);
    color: #363;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #cfc;
    margin: 1rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-success::before {
    content: '✅';
    font-size: 1rem;
}
