/* Google OAuth Button Styling - Professional & Branded */

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3),
                0 4px 8px 3px rgba(60, 64, 67, 0.15);
    color: #3c4043;
    text-decoration: none;
}

.btn-google:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
                0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-google:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

/* Block button variant */
.btn-block.btn-google {
    width: 100%;
    display: flex;
}

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

    .btn-google svg {
        width: 16px;
        height: 16px;
    }
}

/* Animation for icon */
.btn-google svg {
    transition: transform 0.2s ease-in-out;
}

.btn-google:hover svg {
    transform: scale(1.05);
}

/* Loading state (opcional para feedback visual) */
.btn-google.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

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

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

/* Divider styling for "or" text */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dadce0;
}

.divider-text {
    padding: 0 15px;
    color: #5f6368;
    font-size: 12px;
    font-weight: 400;
}

/* Accessibility improvements */
.btn-google:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

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

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

    .divider::before,
    .divider::after {
        border-bottom-color: #5f6368;
    }

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