/* OAuth Provider Buttons - Modern Styling */

/* Hide default "- or -" separator and add custom one */
.o_login_auth em {
    display: none !important;
}

/* Add custom divider before OAuth buttons */
.o_login_auth {
    margin-top: 1.5rem;
    position: relative;
}

.o_login_auth::before {
    content: 'or continue with';
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.o_auth_oauth_providers::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}

/* Reset default list-group styles */
.o_auth_oauth_providers.list-group {
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

/* Style individual OAuth provider buttons */
.o_auth_oauth_providers .list-group-item {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    border: 2px solid #dadce0;
    border-radius: 12px;
    background: white;
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 200ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.25px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.o_auth_oauth_providers .list-group-item:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 1px 3px 1px rgba(66, 64, 67, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.o_auth_oauth_providers .list-group-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide default FontAwesome icons */
.o_auth_oauth_providers .list-group-item i {
    display: none;
}

/* Google OAuth Button */
.o_auth_oauth_providers .list-group-item[href*="google"]::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Odoo.com OAuth Button */
.o_auth_oauth_providers .list-group-item[href*="odoo.com"]::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23714B67'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Microsoft/Azure OAuth Button */
.o_auth_oauth_providers .list-group-item[href*="microsoft"]::before,
.o_auth_oauth_providers .list-group-item[href*="azure"]::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23f35325' d='M1 1h10v10H1z'/%3E%3Cpath fill='%2381bc06' d='M12 1h10v10H12z'/%3E%3Cpath fill='%2305a6f0' d='M1 12h10v10H1z'/%3E%3Cpath fill='%23ffba08' d='M12 12h10v10H12z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Facebook OAuth Button */
.o_auth_oauth_providers .list-group-item[href*="facebook"]::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231877F2' d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .o_auth_oauth_providers .list-group-item {
        padding: 12px 16px;
        font-size: 13px;
    }
}
