/* ============================================
   STYLES POUR GOOGLE OAUTH - Login.cshtml
   ============================================ */

/* Section Google Auth */
.google-auth-section {
    margin-bottom: 1.5rem;
}

/* Bouton Google - Design officiel */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    /* Couleurs officielles Google */
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    /* Typographie */
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    /* Transitions fluides */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Curseur */
    cursor: pointer;
    /* Empêcher la sélection du texte */
    user-select: none;
    -webkit-user-select: none;
}

    /* Hover state */
    .btn-google:hover {
        background: #f8f9fa;
        border-color: #d2d3d4;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        color: #3c4043;
        text-decoration: none;
        transform: translateY(-1px);
    }

    /* Active state (click) */
    .btn-google:active {
        background: #f1f3f4;
        border-color: #dadce0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        transform: translateY(0);
    }

    /* Focus state (accessibilité) */
    .btn-google:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    }

/* Logo Google */
.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Séparateur "OU" */
.login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

    .login-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
        transform: translateY(-50%);
    }

.divider-text {
    position: relative;
    display: inline-block;
    background: white;
    padding: 0 16px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Animation au chargement (optionnel mais classe) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.google-auth-section {
    animation: fadeInUp 0.4s ease-out;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .btn-google {
        font-size: 13px;
        padding: 10px 20px;
        gap: 10px;
    }

    .google-icon {
        width: 18px;
        height: 18px;
    }

    .divider-text {
        font-size: 12px;
        padding: 0 12px;
    }
}

/* Dark mode support (si ton site a un mode sombre) */
@media (prefers-color-scheme: dark) {
    .btn-google {
        background: #202124;
        border-color: #5f6368;
        color: #e8eaed;
    }

        .btn-google:hover {
            background: #292a2d;
            border-color: #5f6368;
            color: #e8eaed;
        }

    .divider-text {
        background: #1a1a1a;
        color: #9aa0a6;
    }

    .login-divider::before {
        background: linear-gradient(to right, transparent, #5f6368 20%, #5f6368 80%, transparent);
    }
}

/* État de chargement (optionnel - si tu veux un spinner) */
.btn-google.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-google.loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        margin-left: 10px;
        border: 2px solid #dadce0;
        border-top-color: #4285f4;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibilité - High contrast mode */
@media (prefers-contrast: high) {
    .btn-google {
        border-width: 2px;
    }
}

/* Réduction des animations (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    .google-auth-section,
    .btn-google,
    .btn-google.loading::after {
        animation: none;
        transition: none;
    }
}
